-
Bug
-
Resolution: Fixed
-
P4
-
1.1.5, 1.2.0
-
tiger
-
x86
-
windows_95, windows_nt
Name: gvC48267 Date: 12/01/97
In Win32, the peer for java.awt.TextField gets created with the ES_NOHIDESEL
style bit set. This is NOT the usual style for most other Windows programs
users are familiar with, and this causes the tabbing and selection to be
different and confusing (IMHO). Suggest removing the ES_NOHIDESEL style from
AwtTextField::Create() in awt_TextField.cpp.
-
Specifically, in most Windows apps, the text in a text field gets selected
when tabbed to, and gets unselected when tabbed away. Any state of selection
performed by the user is discarded when tabbed away. But in Java, the state
of selection persists visually even when the user tabs away. This can lead to
multiple apparent selections being on screen at the same time, which can be
confusing for a Windows user.
-
One possible workaround would be to subclass TextField and add the desired
Windows-like behavior -- but of course that's not cross-platform! Since an
original intent of peered components is to get the native platform's look-
and-feel, this whole selection policy needs to remain the peer's job.
(In this case, the default n|c behavior *is* different from Windows.)
-
[Verified in 1.1.4.8o & 1.1.5J; probably the same in every JDK since 1.0.]
(Review ID: 21022)
======================================================================
- duplicates
-
JDK-4091505 win32: multiple AWT TextFields can be selected simultaneously
-
- Closed
-
- relates to
-
JDK-6224941 REG: Unable to select the text from TextArea, TextField when they are non-focusable
-
- Open
-
-
JDK-6469163 java.awt.TextArea select(int,int) and insert(String,int) appear to not work
-
- Closed
-
-
JDK-4032727 impossible to implement normal selection semantics
-
- Closed
-