81cac0ea4646c6800e63fa846d64b0490c158c93
[sixth-3d-demos.git] / src / main / java / eu / svjatoslav / sixth / e3d / examples / launcher / Main.java
1 /*
2  * Sixth 3D engine demos. Copyright ©2012-2020, 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 Main extends javax.swing.JFrame {
15
16     private static final long serialVersionUID = -3679656169594556137L;
17
18     private Main() {
19         super();
20         initGUI();
21     }
22
23     public static void main(final String[] args) {
24         SwingUtilities.invokeLater(() -> {
25             final Main inst = new Main();
26             final BorderLayout instLayout = new BorderLayout();
27             inst.setLocationRelativeTo(null);
28             inst.setVisible(true);
29             inst.getContentPane().setLayout(instLayout);
30         });
31     }
32
33     private void initGUI() {
34         getContentPane().add(new MenuPanel());
35         pack();
36         setSize(390, 300);
37     }
38
39 }