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

ComboBoxTableCell startEdit method should set converter when ComboBox is created

XMLWordPrintable

      When an instance of ComboBox is created in the ComboBoxTableCell.startEdit() method the converter that was assigned to the ComboBoxTableCell is not passed on to the ComboBox instance. Consequently the default toString() method is called on the items when the drop down is rendered. The method should look like this:

          @Override public void startEdit() {
      ..........
              if (comboBox == null) {
                  comboBox = createComboBox(this, items);
                  comboBox.setConverter(getConverter()); <-------- to be added
                  comboBox.editableProperty().bind(comboBoxEditableProperty());
              }
      .........

            jgiles Jonathan Giles
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: