This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 257928 - Typeahead selection in comboboxes only works when using lower case
Summary: Typeahead selection in comboboxes only works when using lower case
Status: RESOLVED INCOMPLETE
Alias: None
Product: platform
Classification: Unclassified
Component: Property Editors (show other bugs)
Version: 8.0.2
Hardware: All All
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-10 21:05 UTC by rkeen
Modified: 2018-12-26 21:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Possible update (has null pointer exception when no match) (4.08 KB, patch)
2017-08-30 19:51 UTC, rkeen
Details | Diff
Possible update (handling the no match case) (4.24 KB, patch)
2017-08-30 20:10 UTC, rkeen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rkeen 2016-02-10 21:05:29 UTC
In any combobox edited property, if any of the items contain upper case letters, typing the value in the property sheet will not match them unless you use all lowercase letters.

As a specific example:
1. Create a new JFrame form in NetBeans
2. Select the cursor property. Note that the options all start with an upper case letter.
3. Start typing the text of an unselected value using an upper case letter (e.g. start typing "Wait Cursor").

Note that the "Wait Cursor" item will not be selected. However, if you type "wait cursor" in lower case, the "Wait Cursor" item will be selected.

Additionally, when an item is already selected in the middle of the list, typing a value should match items after that point. For example, in the cursor property example, if "Wait Cursor" is currently selected, typing "north" should match "Northwest Resize Cursor" because it follows "Wait Cursor" but it instead matches "North Resize Cursor" which comes before "Wait Cursor". This behavior would then match that implemented in standard combo box type-ahead matching (see javax.swing.JComboBox.DefaultKeySelectionManager.selectionForKey).
Comment 1 rkeen 2017-08-30 19:51:28 UTC
Created attachment 165057 [details]
Possible update (has null pointer exception when no match)
Comment 2 rkeen 2017-08-30 20:10:58 UTC
Created attachment 165058 [details]
Possible update (handling the no match case)
Comment 3 rkeen 2018-12-26 21:30:35 UTC
Moved to the Apache issue tracking system: https://issues.apache.org/jira/browse/NETBEANS-1833