Changed license to Creative Commons Zero (CC0).
[sixth-3d-demos.git] / src / main / java / eu / svjatoslav / sixth / e3d / examples / launcher / Main.java
1 /*
2  * Sixth 3D engine demos. Author: Svjatoslav Agejenko. 
3  * This project is released under Creative Commons Zero (CC0) license.
4  *
5 */
6
7 package eu.svjatoslav.sixth.e3d.examples.launcher;
8
9 import javax.swing.*;
10 import java.awt.*;
11
12 class Main extends javax.swing.JFrame {
13
14     private static final long serialVersionUID = -3679656169594556137L;
15
16     private Main() {
17         super();
18         initGUI();
19     }
20
21     public static void main(final String[] args) {
22         SwingUtilities.invokeLater(() -> {
23             final Main inst = new Main();
24             final BorderLayout instLayout = new BorderLayout();
25             inst.setLocationRelativeTo(null);
26             inst.setVisible(true);
27             inst.getContentPane().setLayout(instLayout);
28         });
29     }
30
31     private void initGUI() {
32         getContentPane().add(new MenuPanel());
33         pack();
34         setSize(390, 300);
35     }
36
37 }