File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
sources/net.sf.j2s.java.core/src/swingjs/a2s Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 44import java .awt .GraphicsConfiguration ;
55import java .awt .MenuBar ;
66import java .awt .MenuComponent ;
7- //import java.awt.peer.FramePeer;
7+ import java .awt .event .WindowAdapter ;
8+ import java .awt .event .WindowEvent ;
89
910import javax .swing .JFrame ;
1011import javax .swing .JMenuBar ;
@@ -38,6 +39,14 @@ public Frame(String title, GraphicsConfiguration gc) {
3839 listener = new A2SListener ();
3940 setDefaultCloseOperation (DO_NOTHING_ON_CLOSE );
4041 Util .setAWTWindowDefaults (this );
42+ addWindowListener (new WindowAdapter () {
43+
44+ @ Override
45+ public void windowOpened (WindowEvent e ) {
46+ repaint ();
47+ }
48+
49+ });
4150 }
4251
4352
@@ -79,4 +88,7 @@ public void addNotify() {
7988 }
8089 }
8190
91+
92+
93+
8294}
You can’t perform that action at this time.
0 commit comments