diff options
Diffstat (limited to 'src/demos/particles')
-rwxr-xr-x | src/demos/particles/engine/ControlWindow.java | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/demos/particles/engine/ControlWindow.java b/src/demos/particles/engine/ControlWindow.java index ab94ff1..f496ecb 100755 --- a/src/demos/particles/engine/ControlWindow.java +++ b/src/demos/particles/engine/ControlWindow.java @@ -38,12 +38,11 @@ package demos.particles.engine; import javax.swing.*; import java.awt.*; + import javax.swing.border.*; import java.awt.event.*; import javax.swing.event.*; -import javax.media.opengl.GLProfile; - public class ControlWindow extends JFrame implements ActionListener, ChangeListener { // For the engine @@ -127,7 +126,7 @@ public class ControlWindow extends JFrame implements ActionListener, ChangeListe constraints = new GridBagConstraints(); constraints.insets = new Insets(3,2,3,2); - constraints.fill=constraints.HORIZONTAL; + constraints.fill=GridBagConstraints.HORIZONTAL; constraints.gridx = 0; constraints.gridy = 0; @@ -178,7 +177,7 @@ public class ControlWindow extends JFrame implements ActionListener, ChangeListe constraints = new GridBagConstraints(); constraints.weightx = constraints.weighty = 1.0d; - constraints.fill=constraints.BOTH; + constraints.fill=GridBagConstraints.BOTH; constraints.gridx = 0; constraints.gridy = 0; @@ -196,13 +195,6 @@ public class ControlWindow extends JFrame implements ActionListener, ChangeListe } public static void main(String[] args) { - // set argument 'NotFirstUIActionOnProcess' in the JNLP's application-desc tag for example - // <application-desc main-class="demos.j2d.TextCube"/> - // <argument>NotFirstUIActionOnProcess</argument> - // </application-desc> - boolean firstUIActionOnProcess = 0==args.length || !args[0].equals("NotFirstUIActionOnProcess") ; - GLProfile.initSingleton(firstUIActionOnProcess); - new ControlWindow(); } |