From be0ebf39ac48e904803ad35ad280dc6ecde03119 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 21 Jun 2012 20:58:04 +0200 Subject: 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 --- src/demos/particles/engine/ControlWindow.java | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'src/demos/particles') 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 - // - // NotFirstUIActionOnProcess - // - boolean firstUIActionOnProcess = 0==args.length || !args[0].equals("NotFirstUIActionOnProcess") ; - GLProfile.initSingleton(firstUIActionOnProcess); - new ControlWindow(); } -- cgit v1.2.3