| 12345678910111213141516171819202122232425262728293031323334 |
- 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());
-
- }
- }
|