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

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

    Details

      Description

      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.

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:
                  Imported: