summaryrefslogtreecommitdiff
path: root/RGens/src/main/java/bjc/rgens/gui/GrammarStudio.java
blob: 46f0d6e67e0a6ea6f7de5392b44e267a536090b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package bjc.rgens.gui;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

public class GrammarStudio {
	public static void main(String[] args) {
		try {
			UIManager.setLookAndFeel(
					UIManager.getSystemLookAndFeelClassName());
		} catch (ClassNotFoundException | InstantiationException
				| IllegalAccessException
				| UnsupportedLookAndFeelException ex) {
			System.out.println(
					"WARNING: Could not use system look and feel");
			ex.printStackTrace();
		}

		GrammarStudioFrame mainFrame = new GrammarStudioFrame();

		mainFrame.setDefaultCloseOperation(
				GrammarStudioFrame.EXIT_ON_CLOSE);

		mainFrame.setVisible(true);
	}
}