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

TextField.setEditable(false) removes prompt when focused

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P5
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
      None
    • Environment:

      JDK 8u40, Win 7 Pro SP1, 64 Bit

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Imported: