[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: JTable changeSelection and multiple selection implemen
From: |
Anthony Balkissoon |
Subject: |
[cp-patches] FYI: JTable changeSelection and multiple selection implementation |
Date: |
Thu, 30 Jun 2005 16:37:44 -0400 |
This patch implements the changeSelection method in JTable. It also
provides multiple selection capabilities in JTables.
Patch attached.
2005-06-30 Anthony Balkissoon <address@hidden>
* javax/swing/JTable.java:
(initializeLocalVars): Set dragEnabled to true by default to comply
with reference implementations.
(getSelectionModel): Don't return null if row selection is disabled,
still return selectionModel. This complies with reference
implemenations.
(changeSelection): New method.
* javax/swing/plaf/basic/BasicTableUI.java: Added a MouseMotionListener
so that MouseDragged events register properly.
(MouseInputHandler.updateSelection): Added boolean parameter for
Control being pressed and added functionality for this (multiple
selection).
- Tony
JTableChgSlct_MultSlct.diff
Description: Text Data
- [cp-patches] FYI: JTable changeSelection and multiple selection implementation,
Anthony Balkissoon <=