Main.java 764 B

12345678910111213141516171819202122232425262728
  1. package gui.main;
  2. import gui.frames.MainFrame;
  3. import javax.swing.UIManager;
  4. import javax.swing.UnsupportedLookAndFeelException;
  5. public class Main {
  6. public static void main(String[] args){
  7. //sets the systems look and feels
  8. //osx
  9. if(System.getProperties().getProperty("os.name").equals("Mac OS X")) {
  10. System.setProperty("apple.laf.useScreenMenuBar", "true");
  11. System.setProperty("com.apple.mrj.application.apple.menu.about.name", "Test");
  12. }
  13. try{
  14. UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
  15. }catch(ClassNotFoundException | InstantiationException| IllegalAccessException | UnsupportedLookAndFeelException e) {
  16. e.printStackTrace();
  17. }
  18. new MainFrame();
  19. }
  20. }