Skip to content

Commit cbc9040

Browse files
Tejesh Rprsadhuk
authored andcommitted
8290278: JavaDoc of index parameter of method JTabbedPane.insertTab
Reviewed-by: psadhukhan, prr, honkar
1 parent 2712bc3 commit cbc9040

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java.desktop/share/classes/javax/swing/JTabbedPane.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,10 +722,10 @@ public void setSelectedComponent(Component c) {
722722
* @param component the component to be displayed when this tab is clicked.
723723
* @param tip the tooltip to be displayed for this tab
724724
* @param index the position to insert this new tab
725-
* ({@code > 0 and <= getTabCount()})
725+
* {@code (index >= 0 && index <= getTabCount())}
726726
*
727727
* @throws IndexOutOfBoundsException if the index is out of range
728-
* ({@code < 0 or > getTabCount()})
728+
* {@code (index < 0 || index > getTabCount())}
729729
*
730730
* @see #addTab
731731
* @see #removeTabAt

0 commit comments

Comments
 (0)