We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2712bc3 commit cbc9040Copy full SHA for cbc9040
src/java.desktop/share/classes/javax/swing/JTabbedPane.java
@@ -722,10 +722,10 @@ public void setSelectedComponent(Component c) {
722
* @param component the component to be displayed when this tab is clicked.
723
* @param tip the tooltip to be displayed for this tab
724
* @param index the position to insert this new tab
725
- * ({@code > 0 and <= getTabCount()})
+ * {@code (index >= 0 && index <= getTabCount())}
726
*
727
* @throws IndexOutOfBoundsException if the index is out of range
728
- * ({@code < 0 or > getTabCount()})
+ * {@code (index < 0 || index > getTabCount())}
729
730
* @see #addTab
731
* @see #removeTabAt
0 commit comments