package schmo; import javax.swing.*; /** * Main class for the SCHMO application. Sets the look and feel, then creates * a new instance of SchmoMainFrame to get things going. * * @author Michelle Lee & Joey Pini */ public class Main { /** Creates a new instance of Main */ public Main() { /* Try setting the look and feel. */ try{ String laf = UIManager.getLookAndFeel().toString(); laf = laf.toLowerCase(); if(laf.contains("metal")){ UIManager.setLookAndFeel( "com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); } } catch(Exception e){ System.out.println("Could not set the look and feel."); } schmoMainFrame = new SchmoMainFrame(); //instance of main interface schmoMainFrame.setVisible(true); } /** * @param args the command line arguments */ public static void main(String[] args) { new Main(); } /** * Private variables. */ private SchmoMainFrame schmoMainFrame; }