On Thu, 14 Jul 2022 15:58:18 GMT, Tejesh R <[email protected]> wrote:
> JavaDoc of _JTabbedPane.inseetTab()_ is updated. The index position to insert
> a new tab ranges from 0 to _TabCount_(Position after the last tab position),
> the same is updated from _> 0_ to _>= 0_ .
src/java.desktop/share/classes/javax/swing/JTabbedPane.java line 727:
> 725: * ({@code >= 0 and <= getTabCount()})
> 726: *
> 727: * @throws IndexOutOfBoundsException if the index is out of range
Seems fine. The existing text actually contradicts the exception text
immediately below.
Even though it is therefore arguably a typo, I suggest even so that a CSR be
filed for this.
-------------
PR: https://git.openjdk.org/jdk/pull/9496