-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
1.4.2
-
x86
-
windows_2000
Name: jk109818 Date: 09/02/2003
A DESCRIPTION OF THE REQUEST :
To enable keyboard "searching" in a JList the getNextMatch method was implemented. However, the actual mechanism of implementation with a KeyListener only pays attention to a single key at a time. Because of this, only the first character in a list entry can be sought with keystrokes. Most MS Windows lists, trees, etc. allow entry of actual STRINGS of MULTIPLE characters for incremental searching. This is a feature of Windows applications that is currently extremely difficult to implement in Java apps.
JUSTIFICATION :
To enable MS Windows apps to be ported to Java implementations without losing important list searching functionality.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Each succesive keystroke would expand the search prefix by that character. Only as many letters as uniquely distinguish an entry from another need be entered.
ACTUAL -
Only the first character in a list entry can be searched for. If there a 20 entries that start with the letter "M", the user must enter "MMMMMMMMMMMMMMMMMMMM" to get to the last.
(Incident Review ID: 201436)
======================================================================
- duplicates
-
JDK-4908142 JList doesn't handle search function appropriately
-
- Resolved
-
- relates to
-
JDK-4919991 Swing's JComboBox behaviour not standard for keyboard search
-
- Resolved
-