bbb9e32183e6296cb60bd01a64f5e393f28ed0bc
[sixth-3d-demos.git] / src / main / java / eu / svjatoslav / sixth / e3d / examples / launcher / LauncherFrame.java
1 /*
2  * Sixth 3D engine demos. Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of version 3 of the GNU Lesser General Public License
6  * or later as published by the Free Software Foundation.
7  */
8
9 package eu.svjatoslav.sixth.e3d.examples.launcher;
10
11 import javax.swing.*;
12 import java.awt.*;
13
14 class LauncherFrame extends javax.swing.JFrame {
15
16     private static final long serialVersionUID = -3679656169594556137L;
17
18     private LauncherFrame() {
19         super();
20         initGUI();
21
22     }
23
24     /**
25      * Auto-generated main method to display this JFrame
26      */
27     public static void main(final String[] args) {
28         SwingUtilities.invokeLater(() -> {
29             final LauncherFrame inst = new LauncherFrame();
30             final BorderLayout instLayout = new BorderLayout();
31             inst.setLocationRelativeTo(null);
32             inst.setVisible(true);
33             inst.getContentPane().setLayout(instLayout);
34         });
35     }
36
37     private void initGUI() {
38         getContentPane().add(new MenuPanel());
39         pack();
40         setSize(390, 300);
41     }
42
43 }