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

Bad JComboBox.setSelectedItem() description

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0
    • docs
    • beta
    • generic
    • generic



      Name: diC59631 Date: 08/06/98


      The description for setSelectedItem() is bad for JComboBox.

      Currently, it states:
      Sets the selected item in the JComboBox by specifying the object in the list. If anObject is in the list, the list displays with anObject selected. If the
      object does not exist in the list, the default data model selects the first item in the list.

      However, if the combobox is editable, then one can set the selected item to anything, and the last part
      of the description is bad.
      (Review ID: 36536)
      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            dindrigo Daniel Indrigo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: