diff options
author | Sven Gothel <[email protected]> | 2012-06-21 20:58:04 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-06-21 20:58:04 +0200 |
commit | be0ebf39ac48e904803ad35ad280dc6ecde03119 (patch) | |
tree | 877e5b6cb721d182cf6f5b6c7bb2d6d34dcef0fd /src/demos/particles | |
parent | 9c2d74736fdd723267aaf6f7a5018dd1bc882775 (diff) |
Remove GLProfile.initSingleton(..) calls and JNLP argument 'NotFirstUIActionOnProcess'; Adapt to CapabilitiesChooser API/generics change; Misc
- Remove GLProfile.initSingleton(..) calls and JNLP argument 'NotFirstUIActionOnProcess'
- Adapt to CapabilitiesChooser API/generics change
- Cleanup some generics use .. etc
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(); } |