classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: BasicTableUI TAB, SHIFT-TAB, and SHIFT-ENTER


From: Anthony Balkissoon
Subject: [cp-patches] FYI: BasicTableUI TAB, SHIFT-TAB, and SHIFT-ENTER
Date: Mon, 25 Jul 2005 16:07:00 -0400

This patch implements TAB, SHIFT-TAB, and SHIFT-ENTER key actions and
merges them with the code for the ENTER action because of the
similarities.

Note that you won't be able to test the TAB or SHIFT-TAB unless you also
apply the Hack.diff patch because JTable currently uses TABs to change
focus.  This is incorrect and will be fixed separately, but applying the
small Hack.diff will allow you to see the implemented key actions.

Patch attached.


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

* javax/swing/plaf/basic/BasicTableUI.java:
(KeyHandler.advanceSingleSelection): New method.  Helper method for 
ENTER, SHIFT-ENTER, TAB, and SHIFT-TAB key events.
(KeyHandler.advanceMultipleSelection): Likewise, used when the table
has multiple selections at the time that ENTER or TAB was pressed.
(KeyHandler.keyPressed): Implemented TAB, SHIFT-TAB, and SHIFT-ENTER
and merged these with existing code for ENTER event, because of the
similarites.

Attachment: JTableTAB_ENTER_SHIFT.diff
Description: Text Data

Attachment: Hack.diff
Description: Text Data


reply via email to

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