JDK-8127037 : TextField: text disappears after being selected and then clicked.
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 7u6
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2012-04-24
  • Updated: 2015-06-17
  • Resolved: 2012-04-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7u6Resolved
Related Reports
Duplicate :  
Relates :  
Description
If a TextField contains text which is longer then TextField width, the following steps can be done to reproduce the issue:
1. Double click the TextField to select the whole text.
2. Click once to deselect it. The text will disappear.

Apparently, just pressing ctrl+A or selecting all text in any other way doesn't reproduce the issue.

First observed in 2.2 b02.
To reproduce please use the attached NetBeans project (if the application starts up with selected text in TextField, deselect it before trying to reproduce the issue).
Comments
I don't understand why this was filed at all, without checking b05 first, since the submitter noted in RT-20918 that it could be a duplicate.
24-04-2012

I can not reproduce this with 2.2 b05. Note that double-clicking does not select the whole text, just one word. Triple-clicking selects all, but neither action causes a problem when de-selecting. RT-20918 was fixed in b05. So why is this bug filed against b02?
24-04-2012

Slightly raising priority: doubleclicking is a common way to select all text in control, especially if it's long, and such behaviour is very annoying.
24-04-2012