+ try {
+ SwingUtilities.invokeAndWait(new Runnable() {
+ public void run() {
+ AWTScreen.this.frame = new AWTFrame(AWTScreen.this);
+ AWTScreen.this.sessionInfo =
+ new AWTSessionInfo(AWTScreen.this.frame,
+ frame.textWidth,
+ frame.textHeight);
+
+ AWTScreen.this.setDimensions(sessionInfo.getWindowWidth(),
+ sessionInfo.getWindowHeight());
+
+ AWTScreen.this.frame.resizeToScreen();
+ AWTScreen.this.frame.setVisible(true);
+ }
+ } );
+ } catch (Exception e) {
+ e.printStackTrace();
+ }