changeset 1450:e848c165aaa9

RT-22972: ComboBox with dynamic item list : issue with the "Empty" label
author jgiles
date Mon, 16 Jul 2012 11:18:30 +1200
parents 58bea6c6decc
children 5ba93f3d48b7
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/ComboBoxListViewSkin.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/ComboBoxListViewSkin.java	Fri Jul 13 12:12:11 2012 +1200
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/ComboBoxListViewSkin.java	Mon Jul 16 11:18:30 2012 +1200
@@ -405,7 +405,7 @@
         if (empty) {
             if (buttonCell == null) return;
             cell.setGraphic(null);
-            cell.setText(comboBox.getPromptText() == null ? null : comboBox.getPromptText());
+            cell.setText(null);
         } else if (item instanceof Node) {
             Node currentNode = buttonCell.getGraphic();
             Node newNode = (Node) item;