Skip to content

Commit 734ccc9

Browse files
hansonrhansonr
authored andcommitted
use invalidateTree, not invalidate, to prevent early paint
1 parent 4c1badd commit 734ccc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/net.sf.j2s.java.core/src/swingjs/plaf/Resizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ protected void fHandleDOMResize(Object event, int dw, int dh) {
148148
((JApplet) rootPane.getParent()).resizeHTML(r.width, r.height);
149149
} else {
150150
jframe.setPreferredSize(new Dimension(r.width, r.height));
151-
jframe.invalidate();
151+
jframe.invalidateTree();
152152
jframe.repackContainer();
153153
if (jframe instanceof JInternalFrame) {
154154
try {

0 commit comments

Comments
 (0)