- this.addWindowListener(new WindowAdapter()\r
- {\r
- public void windowClosing(WindowEvent evt)\r
- {\r
- quit();\r
- }\r
- });\r
- setVisible(true);\r
-\r
- this.setDropTarget(new java.awt.dnd.DropTarget(desktop, this));\r
-\r
- /////////Add a splashscreen on startup\r
- /////////Add a splashscreen on startup\r
- JInternalFrame frame = new JInternalFrame();\r
-\r
- SplashScreen splash = new SplashScreen(frame, image);\r
- frame.setContentPane(splash);\r
- frame.setLayer(JLayeredPane.PALETTE_LAYER);\r
- addInternalFrame(frame, "", 750, 160, false);\r
- frame.setLocation( (int) ( (getWidth() - 750) / 2),\r
- (int) ( (getHeight() - 160) / 2));\r
- }\r
-\r
- public static void addInternalFrame(final JInternalFrame frame,\r
- String title, int w, int h)\r
- {\r
- addInternalFrame(frame, title, w, h, true);\r
- }\r
-\r
- public static void addInternalFrame(final JInternalFrame frame,\r
- String title, int w, int h,\r
- boolean resizable)\r
- {\r
- desktop.add(frame);\r
- openFrameCount++;\r
-\r
- try\r
- {\r
- frame.setSelected(true);\r
+ this.addWindowListener(new WindowAdapter()\r
+ {\r
+ public void windowClosing(WindowEvent evt)\r
+ {\r
+ quit();\r
+ }\r
+ });\r
+\r
+ this.setDropTarget(new java.awt.dnd.DropTarget(desktop, this));\r
+\r
+ /////////Add a splashscreen on startup\r
+ /////////Add a splashscreen on startup\r
+ JInternalFrame frame = new JInternalFrame();\r
+\r
+ SplashScreen splash = new SplashScreen(frame, image);\r
+ frame.setContentPane(splash);\r
+ frame.setLayer(JLayeredPane.PALETTE_LAYER);\r
+ addInternalFrame(frame, "", 750, 160, false);\r
+ frame.setLocation((int) ((getWidth() - 750) / 2),\r
+ (int) ((getHeight() - 160) / 2));\r