*/\r
private static final long serialVersionUID = 207759413522910399L;\r
\r
+ private static final FirstPanel INSTANCE = FirstPanel.init();\r
+ \r
private String startpath;\r
private ModuleInfo mi;\r
\r
private boolean tofile = true, toscreen = true;\r
private PrintWriter logfile;\r
\r
- FirstPanel() throws Exception {\r
+ FirstPanel() {\r
GridBagLayout gridbag = new GridBagLayout();\r
setLayout(gridbag);\r
\r
\r
//---------------------------------------------------------------------------------------//\r
\r
- public static FirstPanel init() throws Exception {\r
- \r
- //UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());\r
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r
- //UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");\r
- //UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");\r
- //UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel");\r
- //UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");\r
+ private static final FirstPanel init() {\r
+ try {\r
+ UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r
+ //UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());\r
+ //UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");\r
+ //UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");\r
+ //UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel");\r
+ //UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");\r
+ } catch (Exception e) {\r
+ System.out.println(e.getMessage());\r
+ }\r
\r
JFrame frame = new JFrame("MigrationTools");\r
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r
\r
return fp;\r
}\r
+ \r
+ public static final FirstPanel getInstance() {\r
+ return INSTANCE;\r
+ }\r
}
\ No newline at end of file