classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] Patch: JList multiple selection


From: Anthony Balkissoon
Subject: [cp-patches] Patch: JList multiple selection
Date: Thu, 16 Jun 2005 10:26:54 -0400

This patch allows multiple selection in JLists by pressing CTRL and
clicking.

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

        * javax/swing/JList.java: 
        (getSelectedIndices): Increased for loop upper bound by 1.
        * javax/swing/plaf/basic/BasicListUI.java: Added private class
        KeyHandler to handle keyboard events.
        (MouseInputHandler): Moved code from MousePressed to
        MouseClicked.
        (MouseInputHandler.MouseClicked): Added check for control
        key being down.


This is my first patch contribution so could some hackers take a look at
it and a maintainer commit it if it's accepted.

If this is accepted I'll send a patch allowing moving and selection
within the list using the keyboard (up/down/shift/control).


Cheers,
Tony

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


reply via email to

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