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

TextField.setEditable(false) removes prompt when focused

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • tbd
    • None
    • javafx
    • None
    • JDK 8u40, Win 7 Pro SP1, 64 Bit

      TextField.setEditable(false) should not only prevent people from typing, but it should also prevent the prompt to hide when being focused: It is a bit nasty that the control's SENSE cannot get grasped anymore just because one clicked on the NON-EDITABLE (!) field.

      A proposal could be that the prompt goes away only in case TEXT is non-empty instead of hiding it when being focused. That way, the prompt would stay until someone really started to type.

            Unassigned Unassigned
            mkarg Markus Karg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Imported: