Added screenshot for lots of text editors
[sixth-3d-demos.git] / src / main / java / eu / svjatoslav / sixth / e3d / examples / launcher / MenuPanel.java
index 1499174..e620649 100644 (file)
@@ -10,7 +10,6 @@ import eu.svjatoslav.sixth.e3d.examples.*;
 
 import javax.swing.*;
 import java.awt.event.ActionEvent;
-import java.io.IOException;
 
 class MenuPanel extends JPanel {
     private static final long serialVersionUID = 2012721856427052560L;
@@ -24,11 +23,12 @@ class MenuPanel extends JPanel {
         sequentialGroup.addComponent(new JButton(new ShowPointCloud()));
         sequentialGroup.addComponent(new JButton(new ShowRain()));
         sequentialGroup.addComponent(new JButton(new ShowTextEditors()));
+        sequentialGroup.addComponent(new JButton(new ShowTextEditors2()));
         sequentialGroup.addComponent(new JButton(new ShowGameOfLife()));
         sequentialGroup.addComponent(new JButton(new ShowRandomPolygons()));
     }
 
-    private class ShowTextEditors extends AbstractAction {
+    private static class ShowTextEditors extends AbstractAction {
         ShowTextEditors() {
             putValue(NAME, "Text editors");
         }
@@ -39,8 +39,19 @@ class MenuPanel extends JPanel {
         }
     }
 
+    private static class ShowTextEditors2 extends AbstractAction {
+        ShowTextEditors2() {
+            putValue(NAME, "Text editors city");
+        }
+
+        @Override
+        public void actionPerformed(final ActionEvent e) {
+            TextEditorDemo2.main(null);
+        }
+    }
+
 
-    private class ShowRain extends AbstractAction {
+    private static class ShowRain extends AbstractAction {
         ShowRain() {
             putValue(NAME, "Raining numbers");
         }
@@ -51,7 +62,7 @@ class MenuPanel extends JPanel {
         }
     }
 
-    private class ShowPointCloud extends AbstractAction {
+    private static class ShowPointCloud extends AbstractAction {
         ShowPointCloud() {
             putValue(NAME, "Pointcloud galaxy");
         }
@@ -62,22 +73,18 @@ class MenuPanel extends JPanel {
         }
     }
 
-    private class ShowMathGraphs extends AbstractAction {
+    private static class ShowMathGraphs extends AbstractAction {
         ShowMathGraphs() {
             putValue(NAME, "Mathematical graphs");
         }
 
         @Override
         public void actionPerformed(final ActionEvent e) {
-            try {
-                GraphDemo.main(null);
-            } catch (final IOException e1) {
-                e1.printStackTrace();
-            }
+            GraphDemo.main(null);
         }
     }
 
-    private class ShowRandomPolygons extends AbstractAction {
+    private static class ShowRandomPolygons extends AbstractAction {
         ShowRandomPolygons() {
             putValue(NAME, "Random polygons");
         }
@@ -88,7 +95,7 @@ class MenuPanel extends JPanel {
         }
     }
 
-    private class ShowOctree extends AbstractAction {
+    private static class ShowOctree extends AbstractAction {
         ShowOctree() {
             putValue(NAME, "Volumetric Octree");
         }
@@ -99,7 +106,7 @@ class MenuPanel extends JPanel {
         }
     }
 
-    private class ShowGameOfLife extends AbstractAction {
+    private static class ShowGameOfLife extends AbstractAction {
         ShowGameOfLife() {
             putValue(NAME, "Game of Life");
         }