| 1234567891011121314151617181920212223242526272829303132333435 |
- package main;
- import javax.swing.UIManager;
- import javax.swing.UnsupportedLookAndFeelException;
- import panels.MainMenu;
- import windows.MainFrame;
- public class Main {
- public static void main(String[] args) {
- try {
- // Set System L&F
- UIManager.setLookAndFeel(
- UIManager.getSystemLookAndFeelClassName());
- }
- catch (UnsupportedLookAndFeelException e) {
- // handle exception
- }
- catch (ClassNotFoundException e) {
- // handle exception
- }
- catch (InstantiationException e) {
- // handle exception
- }
- catch (IllegalAccessException e) {
- // handle exception
- }
-
-
- new MainFrame(new MainMenu());
-
- }
- }
|