classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: JTable selectAll fix


From: Anthony Balkissoon
Subject: [cp-patches] FYI: JTable selectAll fix
Date: Mon, 25 Jul 2005 11:34:05 -0400

This patch ensures selectAll doesn't affect the lead selection indices
for the row or column ListSelectionModel.  Since this is fixed, I also
replaced some direct code in BasicListUI with a call to selectAll.  Also
a small touch-up to make the ENTER key press compatible with the JDK.

Patch attached.

2005-07-25  Anthony Balkissoon  <address@hidden>

* javax/swing/JTable.java:
(selectAll): Store the lead selection indices and restore them after
selecting all cells.
* javax/swing/plaf/basic/BasicTableUI.java:
(KeyHandler.keyPressed): Changed the criteria for "only one selection"
when the ENTER key is pressed to match the behavior of the JDK.  Also
replaced direct code for CTRL-A with call to JTable.selectAll().

- Tony

Attachment: JTableEnterKeyFix2.diff
Description: Text Data


reply via email to

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