diff options
Diffstat (limited to 'RGens/src/main/java/bjc/rgens/gui/GrammarStudio.java')
| -rw-r--r-- | RGens/src/main/java/bjc/rgens/gui/GrammarStudio.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/RGens/src/main/java/bjc/rgens/gui/GrammarStudio.java b/RGens/src/main/java/bjc/rgens/gui/GrammarStudio.java new file mode 100644 index 0000000..46f0d6e --- /dev/null +++ b/RGens/src/main/java/bjc/rgens/gui/GrammarStudio.java @@ -0,0 +1,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); + } +} |
