System.out.println("Starting Metalworks...");
try {
com.sun.java.swing.plaf.metal.MetalLookAndFeel.setCurrentTheme( new com.sun.java.swing.plaf.metal.DefaultMetalTheme());
UIManager.setLookAndFeel("com.sun.java.swing.plaf.metal.MetalLookAndFeel");
}
catch ( UnsupportedLookAndFeelException e ) {
System.out.println ("Metal Look & Feel not supported on this platform. \nProgram Terminated");
System.exit(0);
}
catch ( IllegalAccessException e ) {
System.out.println ("Metal Look & Feel could not be accessed. \nProgram Terminated");
System.exit(0);
}
catch ( ClassNotFoundException e ) {
System.out.println ("Metal Look & Feel could not found. \nProgram Terminated");
System.exit(0);
}
catch ( InstantiationException e ) {
System.out.println ("Metal Look & Feel could not be instantiated. \nProgram Terminated");
System.exit(0);
}
catch ( Exception e ) {
System.out.println ("Unexpected error. \nProgram Terminated");
e.printStackTrace();
System.exit(0);
}
JFrame frame = new MetalworksFrame();
frame.setVisible(true);