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;
15 public static void main(final String[] args) {
16 buildAndShowGuiWindow();
20 * Builds and shows the main window of the application.
22 private static void buildAndShowGuiWindow() {
23 JFrame frame = new JFrame("Sixth 3D engine demos");
25 // Keep application running until last frame is closed.
26 frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
28 frame.getContentPane().setLayout(new BorderLayout());
29 frame.getContentPane().add(new ApplicationListPanel(), BorderLayout.CENTER);
30 frame.setSize(400, 300);
32 frame.setLocationRelativeTo(null); // center frame on screen
33 frame.setVisible(true);