package gui.main; import gui.frames.MainFrame; import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; public class Main { public static void main(String[] args){ //sets the systems look and feels //osx if(System.getProperties().getProperty("os.name").equals("Mac OS X")) { System.setProperty("apple.laf.useScreenMenuBar", "true"); System.setProperty("com.apple.mrj.application.apple.menu.about.name", "Test"); } try{ UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); }catch(ClassNotFoundException | InstantiationException| IllegalAccessException | UnsupportedLookAndFeelException e) { e.printStackTrace(); } new MainFrame(); } }