classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: BasicTableUI PAGE UP/DOWN implemented


From: Anthony Balkissoon
Subject: [cp-patches] FYI: BasicTableUI PAGE UP/DOWN implemented
Date: Tue, 02 Aug 2005 15:28:50 -0400

Implemented PAGE UP and PAGE DOWN (including SHIFT and CTRL modifiers)
for BasicTableUI.java.  This involved fixing a bug in JTable's
getCellRect method (it was returning the height of the entire table
instead of just the particular cell).

Also fixed a bug in JViewport scrollRectToVisible.

Patch is attached.

2005-08-02  Anthony Balkissoon  <address@hidden>

* javax/swing/JTable.java:
(getCellRect): Height should be the row height, not the entire table
height.
(getRowHeight): New public method, part of API.
* javax/swing/JViewport.java:
(scrollRectToVisible): Fixed buggy scrolling conditions.
* javax/swing/plaf/basic/BasicTableUI.java:
(KeyHandler.keyPressed): Implemented PAGE-UP, PAGE-DOWN, CTRL-PAGE-UP,
and CTRL-PAGE-DOWN key actions.  Also added line to scroll the table
appropriately after changing the selection.
(KeyHandler.getFirstVisibleColumnIndex): New implementation method.
(KeyHandler.getLastVisibleColumnIndex): Likewise.
(KeyHandler.getFirstVisibleRowIndex): Likewise.
(KeyHandler.getLastVisibleRowIndex): Likewise.

-Tony 

Attachment: JTablePAGE_UP_DOWN.diff
Description: Text Data


reply via email to

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