Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4916038

RFE: True STRING search capability in JList, JComboBox, ...

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.2
    • client-libs



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

            apikalev Andrey Pikalev
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: