X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fexamples%2Flauncher%2FMain.java;h=4d090f8c18dd2ad2b109c0ae77b15a754b4e55c3;hb=680a14d4fa6d95f2ca5c582078a8aa05db522e31;hp=5b970d487312afae9670c2fbb551428c81fc6d3d;hpb=27447b81332690e484ba126be3b9825a296a746b;p=sixth-3d-demos.git diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/Main.java b/src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/Main.java index 5b970d4..4d090f8 100755 --- a/src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/Main.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/Main.java @@ -1,21 +1,37 @@ /* - * Sixth 3D engine demos. Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * Sixth 3D engine demos. Author: Svjatoslav Agejenko. + * This project is released under Creative Commons Zero (CC0) license. * - * This program is free software; you can redistribute it and/or - * modify it under the terms of version 3 of the GNU Lesser General Public License - * or later as published by the Free Software Foundation. - */ +*/ package eu.svjatoslav.sixth.e3d.examples.launcher; -/** - * Main class to launch main menu with examples. - */ +import javax.swing.*; +import java.awt.*; -class Main { +class Main extends javax.swing.JFrame { + + private static final long serialVersionUID = -3679656169594556137L; + + private Main() { + super(); + initGUI(); + } public static void main(final String[] args) { - LauncherFrame.main(args); + SwingUtilities.invokeLater(() -> { + final Main inst = new Main(); + final BorderLayout instLayout = new BorderLayout(); + inst.setLocationRelativeTo(null); + inst.setVisible(true); + inst.getContentPane().setLayout(instLayout); + }); + } + + private void initGUI() { + getContentPane().add(new MenuPanel()); + pack(); + setSize(390, 300); } }