JDK-4032727 : impossible to implement normal selection semantics
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.1
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: windows_95
  • CPU: x86
  • Submitted: 1997-02-17
  • Updated: 2000-01-19
  • Resolved: 2000-01-19
Related Reports
Relates :  
Relates :  
Description

Name: mc57594			Date: 02/17/97


In windows applications one often sees "select on entry"
fields. When the user tabs into the field, the text should
be selected.  However if the user mouse clicks it should not
be.  In JAVA a FocusListener is called upon entry to the
field but it is not possible to know the reason entry was
effected.  Therefore it is impossible to know whether ot
not to select the text.

On exit from a field the text in JAVA remains selected.
This is unusual behavior and extremely confusing to the
end user because focus is not on the control with selected
text.

Moreover there is no "clear selection" method so the JAVA
programer cannot clear selections manually.
company  -  Prolifics, a JYACC company  , email  -  ###@###.###
======================================================================

Comments
WORK AROUND Name: mc57594 Date: 02/17/97 ======================================================================
11-06-2004

EVALUATION > Moreover there is no "clear selection" method so the JAVA > programer cannot clear selections manually. It is possible to clear the selection by calling select(x, x), where x is the position you want the cursor to be. > On exit from a field the text in JAVA remains selected. > This is unusual behavior and extremely confusing to the > end user because focus is not on the control with selected > text. This is not really that unusual. For example, try highlighting the bugid in a Bugtraq edit window and then moving the focus somewhere else. The bugid will remain selected. The remaining rfe is select-on-entry TextComponents. See a similar report: bugid 4095946. eric.hawkes@eng 1999-12-14 close as will not fix. xianfa.deng@Eng 2000-01-18
14-12-1999