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

ComboBox with dynamic item list : issue with the "Empty" label

XMLWordPrintable

      See the linked Scene Builder issue : in case of empty list, a user may think "Empty" is an item that empty the ComboBox value, when it has no effect.
      This is confusing. To avoid this confusion, the "Empty" label should be dimmed.

      Proposed solution: add a new emptyText property. This is analogous with promptText, with the exception that emptyText is displayed as a grayed-out (and non-selectable) row in the ComboBox dropdown list when there are no other items in the items list.

        1. TestComboBox2.java
          2 kB
        2. rt22972.patch
          0.7 kB
        3. screenshot-1.jpg
          screenshot-1.jpg
          12 kB

            jgiles Jonathan Giles
            jcambon Jerome Cambon
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: