home *** CD-ROM | disk | FTP | other *** search
- import com.sun.java.swing.UIManager;
- import com.sun.java.swing.UnsupportedLookAndFeelException;
- import com.sun.java.swing.plaf.metal.DefaultMetalTheme;
- import com.sun.java.swing.plaf.metal.MetalLookAndFeel;
- import java.awt.Component;
-
- public class Metalworks {
- public static void main(String[] var0) {
- System.out.println("Starting Metalworks...");
-
- try {
- MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
- UIManager.setLookAndFeel("com.sun.java.swing.plaf.metal.MetalLookAndFeel");
- } catch (UnsupportedLookAndFeelException var2) {
- System.out.println("Metal Look & Feel not supported on this platform. \nProgram Terminated");
- System.exit(0);
- } catch (IllegalAccessException var3) {
- System.out.println("Metal Look & Feel could not be accessed. \nProgram Terminated");
- System.exit(0);
- } catch (ClassNotFoundException var4) {
- System.out.println("Metal Look & Feel could not found. \nProgram Terminated");
- System.exit(0);
- } catch (InstantiationException var5) {
- System.out.println("Metal Look & Feel could not be instantiated. \nProgram Terminated");
- System.exit(0);
- } catch (Exception var6) {
- System.out.println("Unexpected error. \nProgram Terminated");
- ((Throwable)var6).printStackTrace();
- System.exit(0);
- }
-
- MetalworksFrame var1 = new MetalworksFrame();
- ((Component)var1).setVisible(true);
- }
- }
-