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

JComboBox.setModel() on empty JComboBox causes IllegalArgumentException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.2.0
    • 1.1.6, 1.2.0
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: