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

Editable ComboBox does not use ButtonCell to render selected item

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 8u40
    • 8u5
    • javafx
    • None
    • Windows 7, Java8u5

      A ComboBox does not use the ButtonCell to render the selected item if the ComboBox is editable.
      Instead, it renders the item via its toString()-method.

      I expected ComboBoxes to behave the same in this regard, no matter the property's value - similar to editable TableViews, where a label is rendered until the user starts editing.
      This label can be rendered using the ButtonCell.

      For an example, please see
      https://github.com/UrsKR/sandboxes/blob/9e6f678535d26c8560ce084286b561a9f68a0515/sandbox-javafx/src/main/java/bugs/combobox/RT37364/EditableComboboxDoesNotUseButtonCell.java

            jgiles Jonathan Giles
            ureupkejfx Urs Reupke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: