Main.java 711 B

1234567891011121314151617181920212223242526272829303132333435
  1. package main;
  2. import javax.swing.UIManager;
  3. import javax.swing.UnsupportedLookAndFeelException;
  4. import panels.MainMenu;
  5. import windows.MainFrame;
  6. public class Main {
  7. public static void main(String[] args) {
  8. try {
  9. // Set System L&F
  10. UIManager.setLookAndFeel(
  11. UIManager.getSystemLookAndFeelClassName());
  12. }
  13. catch (UnsupportedLookAndFeelException e) {
  14. // handle exception
  15. }
  16. catch (ClassNotFoundException e) {
  17. // handle exception
  18. }
  19. catch (InstantiationException e) {
  20. // handle exception
  21. }
  22. catch (IllegalAccessException e) {
  23. // handle exception
  24. }
  25. new MainFrame(new MainMenu());
  26. }
  27. }