Skip to content

Commit 4c1badd

Browse files
hansonrhansonr
authored andcommitted
TODO: print/printable all not implemented
1 parent b5d71e4 commit 4c1badd

File tree

1 file changed

+12
-1
lines changed
  • sources/net.sf.j2s.java.core/src/javax/swing

1 file changed

+12
-1
lines changed

sources/net.sf.j2s.java.core/src/javax/swing/JTable.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@
8484
import swingjs.plaf.JSComponentUI;
8585

8686
/**
87+
* SwingJS TODO: print/printable all not implemented
88+
*
89+
*
8790
* The <code>JTable</code> is used to display and edit regular two-dimensional
8891
* tables of cells. See <a href=
8992
* "http://java.sun.com/docs/books/tutorial/uiswing/components/table.html">How
@@ -5775,7 +5778,15 @@ protected JTableHeader createDefaultTableHeader() {
57755778
秘repaint();
57765779
}
57775780

5778-
/**
5781+
/**
5782+
* Equivalent to <code>revalidate</code> followed by <code>repaint</code>.
5783+
*/
5784+
protected void resizeAndRepaint() {
5785+
revalidate();
5786+
repaint();
5787+
}
5788+
5789+
/**
57795790
* Returns the active cell editor, which is {@code null} if the table is not
57805791
* currently editing.
57815792
*

0 commit comments

Comments
 (0)