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

JTabbedPane.setComponentAt causes NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.0
    • 1.3.0
    • client-libs
    • None
    • kestrel
    • generic, x86
    • generic, windows_nt

      In kestrel-beta, JTabbedPane.setComponentAt now throws an NPE.
      This is happening because setComponentAt invokes remove(int) instead of super.remove(int). remove(int) has the effect of removing the tab, which is not the expected behavior of setComponentAt.

            svioletsunw Scott Violet (Inactive)
            svioletsunw Scott Violet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: