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

JComboBox needs to document that setSelectedIndex( -1 ) means no selection

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.1.7, 1.2.0
    • Fix Version/s: 1.4.0
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_2.5.1

      Description

      Calling setSelectedIndex( -1 ) on a JComboBox or calling setSelectedItem( null ) on a ComboBoxModel will cause the selection to become empty. This is not documented anywhere.

        Attachments

          Activity

            People

            • Assignee:
              mdavidsosunw Mark Davidson (Inactive)
              Reporter:
              tsantossunw Tom Santos (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: