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

Render the selected item in a combobox through the box's CellFactory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 7u6
    • 7u6
    • javafx
    • Windows XP, JDK7u4, JavaFX 2.2 b10

      Observed behaviour:
      In FX 2.2, a ComboBox's selected item is rendered through its toString() method.

      Expected behaviour:
      The selected item should be rendered through the ComboBox's CellFactory.

      This is a regression from the 2.1 GA release. The attached code illustrates the issue.
      This issue is probably related to RT-21933, where the CellFactory appears not to be used to render the "null"-item.

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

              Created:
              Updated:
              Resolved:
              Imported: