[Patch][gui] More fixes to JTable
Olga Rodimina
rodimina@redhat.com
Tue Jan 4 19:52:00 GMT 2005
Hi,
Here is the patch that makes more improvements to JTable and
DefaultTableColumnModel. I'll be committing this patch to java-gui-branch.
* javax/swing/JTable.java
(columnAtPoint): New Method. Implemented.
(rowAtPoint): Likewise.
(countSelections): Fixed few small count errors.
(getSelections): Likewise.
(setSelectionMode): Set selection mode for column
selection model in addition to row selection model.
* javax/swing/plaf/basic/BasicTableUI.java:
(getRowForPoint): Removed. Replaced by
JTable.rowAtPoint().
(getColForPoint): Removed. Replaced by
JTable.columnAtPoint().
(updateSelection): Updated to call JTable.columnAtPoint
and JTable.rowAtPoint.
* javax/swing/table/DefaultTableColumnModel.java:
(getSelectedColumns): Implemented.
(getSelectedColumnCount): Implemented.
Olga.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20050104/413232ec/attachment.ksh>
More information about the Java-patches
mailing list