2 * Sixth 3D engine demos. Author: Svjatoslav Agejenko.
3 * This project is released under Creative Commons Zero (CC0) license.
7 package eu.svjatoslav.sixth.e3d.examples.launcher;
12 import static java.awt.BorderLayout.CENTER;
13 import static javax.swing.WindowConstants.DISPOSE_ON_CLOSE;
18 public static void main(final String[] args) {
19 buildAndShowGuiWindow();
23 * Builds and shows the main window of the application.
25 private static void buildAndShowGuiWindow() {
26 JFrame frame = new JFrame("Sixth 3D engine demos");
28 // Keep application running until last frame is closed.
29 frame.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
31 frame.getContentPane().setLayout(new BorderLayout());
32 frame.getContentPane().add(new ApplicationListPanel(), CENTER);
33 frame.setSize(400, 300);
35 frame.setLocationRelativeTo(null); // center frame on screen
36 frame.setVisible(true);