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;
14 public static void main(final String[] args) {
15 buildAndShowGuiWindow();
18 private static void buildAndShowGuiWindow() {
19 JFrame frame = new JFrame("Sixth 3D engine demos");
21 // Keep application running until last frame is closed.
22 frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
24 frame.getContentPane().setLayout(new BorderLayout());
25 frame.getContentPane().add(new ApplicationListPanel(), BorderLayout.CENTER);
26 frame.setSize(400, 300);
28 frame.setLocationRelativeTo(null); // center frame on screen
29 frame.setVisible(true);