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

TextInputControl JavaDoc says empty prompts are null

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • javafx

      It is minor, but if you look at the code for TextInputControl, it is clear that the JavaDoc says empty prompt texts are null, while the code actually implements an empty String. I think the code is fine, but the JavaDoc needs to be updated.

          /**
           * The prompt text to display in the {@code TextInputControl}, or
           * <tt>null</tt> if no prompt text is displayed.
           * @since JavaFX 2.2
           */
          private StringProperty promptText = new SimpleStringProperty(this, "promptText", "") {

            jgiles Jonathan Giles
            risaksen Randahl Isaksen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: