168 |
+ i.bottom); |
+ i.bottom); |
169 |
applet.setSize(size); |
applet.setSize(size); |
170 |
|
|
171 |
// Synchronize on the system event queue when showing and |
// Initialize the applet before showing this window so that |
172 |
// initializing the applet so that it doesn't receive events |
// the applet doesn't receive events before it has been |
173 |
// before it has been initialized. |
// initialized. |
174 |
synchronized (Toolkit.getDefaultToolkit ().getSystemEventQueue ()) |
applet.init (); |
175 |
{ |
|
176 |
setVisible (true); |
setVisible (true); |
|
applet.init (); |
|
|
} |
|
177 |
|
|
178 |
applet.validate(); |
applet.validate(); |
179 |
applet.start(); |
applet.start(); |