classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Patch: JList multiple selection and keyboard selection


From: Anthony Balkissoon
Subject: [cp-patches] Patch: JList multiple selection and keyboard selection
Date: Thu, 16 Jun 2005 12:28:20 -0400

This is a more comprehensive patch than the last one I sent, it should
be used instead.

Allows for multiple selection in JLists as well as selection/navigation
of the JList using the keyboard.

2005-06-16  Anthony Balkissoon  <address@hidden>

        * javax/swing/DefaultListSelectionModel.java:
        (addSelectionInterval): Added update to leadSelectionIndex
        and anchorSelectionIndex variables.
        (removeSelectionInterval): Same as above.
        (setSelectionInterval): Same as above.
        * javax/swing/JList.java:
        (getSelectedIndices): Increased for loop upper bound by 1.
        * javax/swing/plaf/basic/BasicListUI.java: 
        (KeyHandler): New class.
        (MouseInputHandler): Moved code from MousePressed to
        MouseClicked.
        (MouseInputHandler.MouseClicked): Added check for control
        key being down.


-Tony

Attachment: JList-mult-key-select.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]