JComboBox should catch crazy models

XMLWordPrintable

    • Type: Bug
    • Resolution: Incomplete
    • Priority: P4
    • None
    • Affects Version/s: 5.0u2
    • Component/s: client-libs
    • generic
    • solaris_10

      bustos 2005-10-15

      I gave an experimental implementation of ComboBoxModel to a
      JComboBox, and it refused to fire the proper events when the
      user selected an item. A few hours later I discovered that
      it was because my getElementAt() method was returning a new
      array each time, so JComboBox.setSelectedItem() couldn't
      find it in the model and just gave up. JComboBox should
      throw an error or complain, or at the very least, the
      documentation for ComboBoxModel should warn about this.

            Assignee:
            Unassigned
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: