Skip to content

Commit 38bb6b5

Browse files
hansonrhansonr
authored andcommitted
addNotify comment
1 parent eb69489 commit 38bb6b5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sources/net.sf.j2s.java.core/src/swingjs/JSAppletViewer.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,10 @@ public int run1(int mode) {
456456
status = APPLET_ERROR;
457457
break;
458458
}
459-
// BH: This should not be necessary, and it
460-
// is causing validation to happen twice
459+
// BH: This should not be necessary.
460+
// It is causing validation to happen twice,
461+
// But actually that is a good thing, because we don't
462+
// see the flash of incomplete to complete layout.
461463
applet.getRootPane().addNotify();
462464
// force peer creation now
463465
System.out.println("JSAppletViewer start" + currentAppletSize);

0 commit comments

Comments
 (0)