sequentialGroup.addComponent(new JLabel("Choose an example to launch:"));
sequentialGroup.addComponent(new JButton(new ShowOctree()));
sequentialGroup.addComponent(new JButton(new ShowMathGraphs()));
- sequentialGroup.addComponent(new JButton(new ShowPointcloud()));
+ sequentialGroup.addComponent(new JButton(new ShowPointCloud()));
sequentialGroup.addComponent(new JButton(new ShowRain()));
sequentialGroup.addComponent(new JButton(new ShowSinusMap()));
sequentialGroup.addComponent(new JButton(new ShowTextEditors()));
}
private class ShowSinusMap extends AbstractAction {
- public ShowSinusMap() {
+ ShowSinusMap() {
putValue(NAME, "Wireframe sphere and ploygon landscape");
}
}
private class ShowRain extends AbstractAction {
- public ShowRain() {
+ ShowRain() {
putValue(NAME, "Raining numbers");
}
@Override
public void actionPerformed(final ActionEvent e) {
- try {
- RainingNumbersDemo.main(null);
- } catch (final IOException e1) {
- e1.printStackTrace();
- }
+ RainingNumbersDemo.main(null);
}
}
- private class ShowPointcloud extends AbstractAction {
- public ShowPointcloud() {
+ private class ShowPointCloud extends AbstractAction {
+ ShowPointCloud() {
putValue(NAME, "Pointcloud galaxy");
}
}
private class ShowMathGraphs extends AbstractAction {
- public ShowMathGraphs() {
+ ShowMathGraphs() {
putValue(NAME, "Mathematical graphs");
}
}
private class ShowRandomPolygons extends AbstractAction {
- public ShowRandomPolygons() {
+ ShowRandomPolygons() {
putValue(NAME, "Random polygons");
}
}
private class ShowOctree extends AbstractAction {
- public ShowOctree() {
+ ShowOctree() {
putValue(NAME, "Volumetric Octree");
}
}
private class ShowGameOfLife extends AbstractAction {
- public ShowGameOfLife() {
+ ShowGameOfLife() {
putValue(NAME, "Game of Life");
}