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