changeset 10195:766e37676192

8170189: TextInputControl JavaDoc says empty prompts are null Reviewed-by: kcr
author jgiles
date Wed, 14 Dec 2016 09:03:46 +0530
parents 728ec9cbc29c
children bad9795b6f80
files modules/javafx.controls/src/main/java/javafx/scene/control/TextInputControl.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/javafx.controls/src/main/java/javafx/scene/control/TextInputControl.java	Wed Dec 14 09:02:07 2016 +0530
+++ b/modules/javafx.controls/src/main/java/javafx/scene/control/TextInputControl.java	Wed Dec 14 09:03:46 2016 +0530
@@ -263,8 +263,10 @@
     public final Font getFont() { return font == null ? Font.getDefault() : font.getValue(); }
 
     /**
-     * The prompt text to display in the {@code TextInputControl}, or
-     * <tt>null</tt> if no prompt text is displayed.
+     * The prompt text to display in the {@code TextInputControl}. If set to null or an empty string, no
+     * prompt text is displayed.
+     *
+     * @defaultValue An empty String
      * @since JavaFX 2.2
      */
     private StringProperty promptText = new SimpleStringProperty(this, "promptText", "") {