+ /**
+ * Builds and shows the main window of the application.
+ */
+ private static void buildAndShowGuiWindow() {
+ JFrame frame = new JFrame("Sixth 3D engine demos");
+
+ // Keep application running until last frame is closed.
+ frame.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
+
+ frame.getContentPane().setLayout(new BorderLayout());
+ frame.getContentPane().add(new ApplicationListPanel(), CENTER);
+ frame.setSize(400, 300);
+
+ frame.setLocationRelativeTo(null); // center frame on screen
+ frame.setVisible(true);