projects
/
sixth-3d-demos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added text editor demo2 inspired by hackers movie :)
[sixth-3d-demos.git]
/
src
/
main
/
java
/
eu
/
svjatoslav
/
sixth
/
e3d
/
examples
/
launcher
/
MenuPanel.java
diff --git
a/src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/MenuPanel.java
b/src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/MenuPanel.java
index
13d61f2
..
0a60798
100644
(file)
--- a/
src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/MenuPanel.java
+++ b/
src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/MenuPanel.java
@@
-1,10
+1,8
@@
/*
/*
- * Sixth 3D engine demos. Copyright ©2012-2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Sixth 3D engine demos. Author: Svjatoslav Agejenko.
+ * This project is released under Creative Commons Zero (CC0) license.
*
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 3 of the GNU Lesser General Public License
- * or later as published by the Free Software Foundation.
- */
+*/
package eu.svjatoslav.sixth.e3d.examples.launcher;
package eu.svjatoslav.sixth.e3d.examples.launcher;
@@
-12,7
+10,6
@@
import eu.svjatoslav.sixth.e3d.examples.*;
import javax.swing.*;
import java.awt.event.ActionEvent;
import javax.swing.*;
import java.awt.event.ActionEvent;
-import java.io.IOException;
class MenuPanel extends JPanel {
private static final long serialVersionUID = 2012721856427052560L;
class MenuPanel extends JPanel {
private static final long serialVersionUID = 2012721856427052560L;
@@
-25,13
+22,12
@@
class MenuPanel extends JPanel {
sequentialGroup.addComponent(new JButton(new ShowMathGraphs()));
sequentialGroup.addComponent(new JButton(new ShowPointCloud()));
sequentialGroup.addComponent(new JButton(new ShowRain()));
sequentialGroup.addComponent(new JButton(new ShowMathGraphs()));
sequentialGroup.addComponent(new JButton(new ShowPointCloud()));
sequentialGroup.addComponent(new JButton(new ShowRain()));
- sequentialGroup.addComponent(new JButton(new ShowSinusMap()));
sequentialGroup.addComponent(new JButton(new ShowTextEditors()));
sequentialGroup.addComponent(new JButton(new ShowGameOfLife()));
sequentialGroup.addComponent(new JButton(new ShowRandomPolygons()));
}
sequentialGroup.addComponent(new JButton(new ShowTextEditors()));
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");
}
ShowTextEditors() {
putValue(NAME, "Text editors");
}
@@
-42,18
+38,8
@@
class MenuPanel extends JPanel {
}
}
}
}
- private class ShowSinusMap extends AbstractAction {
- ShowSinusMap() {
- putValue(NAME, "Wireframe sphere and ploygon landscape");
- }
-
- @Override
- public void actionPerformed(final ActionEvent e) {
- SphereDemo.main(null);
- }
- }
- private class ShowRain extends AbstractAction {
+ private
static
class ShowRain extends AbstractAction {
ShowRain() {
putValue(NAME, "Raining numbers");
}
ShowRain() {
putValue(NAME, "Raining numbers");
}
@@
-64,7
+50,7
@@
class MenuPanel extends JPanel {
}
}
}
}
- private class ShowPointCloud extends AbstractAction {
+ private
static
class ShowPointCloud extends AbstractAction {
ShowPointCloud() {
putValue(NAME, "Pointcloud galaxy");
}
ShowPointCloud() {
putValue(NAME, "Pointcloud galaxy");
}
@@
-75,22
+61,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) {
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");
}
ShowRandomPolygons() {
putValue(NAME, "Random polygons");
}
@@
-101,7
+83,7
@@
class MenuPanel extends JPanel {
}
}
}
}
- private class ShowOctree extends AbstractAction {
+ private
static
class ShowOctree extends AbstractAction {
ShowOctree() {
putValue(NAME, "Volumetric Octree");
}
ShowOctree() {
putValue(NAME, "Volumetric Octree");
}
@@
-112,7
+94,7
@@
class MenuPanel extends JPanel {
}
}
}
}
- private class ShowGameOfLife extends AbstractAction {
+ private
static
class ShowGameOfLife extends AbstractAction {
ShowGameOfLife() {
putValue(NAME, "Game of Life");
}
ShowGameOfLife() {
putValue(NAME, "Game of Life");
}