// #NAME.java // #DATE /* Generated with NestedSwinger */ import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; public class #NAME extends JFrame { public #NAME() { super("#NAME"); makeGUI(); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); pack(); setResizable(false); setLocationRelativeTo(null); // center the window setVisible(true); } // end of #NAME() private void makeGUI() { #GUI_CODE } // end of makeGUI() // ------------------------------------------------------ public static void main(String[] args) { if(!setNimbusLaF()) setSystemLaF(); new #NAME(); } private static boolean setNimbusLaF() { try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); return true; } catch(Exception e) { return false; } } // end of setNimbusLaF() private static boolean setSystemLaF() { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); return true; } catch(Exception e) { return false; } } // end of setSystemLaF() } // end of #NAME class