JComboBox.setModel() on empty JComboBox causes IllegalArgumentException

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 1.2.0
    • Affects Version/s: 1.1.6, 1.2.0
    • Component/s: client-libs
    • None
    • swing1.1
    • generic, x86, sparc
    • generic, solaris_2.6, windows_nt

      Changing the model of an empty JComboBox causes an IllegalArgumentException, because BasicComboPopup$PropertyChangeHandler.propertyChange() calls JComboBox.setSelectedIndex(0). That does not work because the JComboBox is empty. Testcase can be found under attachments.

            Assignee:
            Tom Santos (Inactive)
            Reporter:
            Ralph Kar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: