Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4342294

JTabbedPane setToolTipTextAt with index out of bounds get wrong exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.0
    • 1.3.0
    • client-libs
    • None
    • beta
    • x86, sparc
    • linux, solaris_2.6

      The JTabbedPane setToolTipTextAt(int index, String toolTipText) method does
      not throw the IllegalArgumentException (As specified in the javadoc) if the
      index is out of bounds. The ArrayIndexOutOfBoundsException is thrown instead.
      This may be just a javadoc bug.

      The JTabbedPane getToolTipTextAt(int index) method has the same problem.
      The JTabbedPane setIconAt(int index, Icon icon) method has the same problem.

            amfowler Anne Fowler (Inactive)
            mcolburnsunw Michael Colburn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: