[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] Needs Approval: Patch - JList multiple selection including
From: |
Anthony Balkissoon |
Subject: |
[cp-patches] Needs Approval: Patch - JList multiple selection including Shift-Click |
Date: |
Wed, 29 Jun 2005 15:49:26 -0400 |
This patch improves JList's multiple selection capabilities, most
notably by adding shift-click abilities.
Patch is attached.
Patch is pending approval.
2005-06-29 Anthony Balkissoon <address@hidden>
* javax/swing/DefaultListSelectionModel.java:
(addSelectionInterval): Don't clear the selection state if JList's
selection mode is SINGLE_SELECTION_INTERVAL and index0 and index1
correspond to an interval adjacent to an already selected interval.
(removeSelectionInterval): Added check for a middle interval being
removed when selection mode is SINGLE_SELECTION_INTERVAL.
* javax/swing/plaf/basic/BasicListUI.java:
(KeyHandler.keyPressed): Added check for scrolling past bottom of list.
(MouseHandler.mouseClicked): Added check for shift key being
pressed.
JList-shift-click.diff
Description: Text Data
- [cp-patches] Needs Approval: Patch - JList multiple selection including Shift-Click,
Anthony Balkissoon <=