Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-1833

Typeahead selection in comboboxes only works when using lower case

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 8.2, 9.0
    • None
    • None

    Description

      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).

      See Typeahead.patch for a possible update.

      Attachments

        1. Typeahead.patch
          4 kB
          Rangi Keen

        Activity

          People

            Unassigned Unassigned
            rkeen Rangi Keen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: