Hi,
This patch implements JTable.resizeAndRepaint(), the last missing method
in JTable, save for the accessibility stuff which I'll do soon.
2005-09-20 Roman Kennke <[EMAIL PROTECTED]>
* javax/swing/JTable.java
(resizeAndRepaint): New protected method.
/Roman
Index: javax/swing/JTable.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JTable.java,v
retrieving revision 1.46
diff -u -r1.46 JTable.java
--- javax/swing/JTable.java 12 Sep 2005 19:09:34 -0000 1.46
+++ javax/swing/JTable.java 20 Sep 2005 14:43:29 -0000
@@ -2402,4 +2402,13 @@
return editor.getTableCellEditorComponent
(this, getValueAt(row, column), isCellSelected(row, column), row, column);
}
+
+ /**
+ * This revalidates the <code>JTable</code> and queues a repaint.
+ */
+ protected void resizeAndRepaint()
+ {
+ revalidate();
+ repaint();
+ }
}_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches