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/misc/GLCapsTableDemo.java | |
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/misc/GLCapsTableDemo.java')
-rwxr-xr-x | src/demos/misc/GLCapsTableDemo.java | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/demos/misc/GLCapsTableDemo.java b/src/demos/misc/GLCapsTableDemo.java index afa85fa..7af11d7 100755 --- a/src/demos/misc/GLCapsTableDemo.java +++ b/src/demos/misc/GLCapsTableDemo.java @@ -14,9 +14,7 @@ import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.List; import java.util.ArrayList; -import javax.media.nativewindow.Capabilities; import javax.media.opengl.DefaultGLCapabilitiesChooser; -import javax.media.opengl.GLProfile; import javax.media.opengl.GLCapabilities; import javax.media.opengl.GLCapabilitiesChooser; import javax.media.opengl.awt.GLCanvas; @@ -60,12 +58,12 @@ public class GLCapsTableDemo "ABits", "aR", "aG", "aB", "aA", // accum bits "Z", "S", "AA|AAS", "PBuf(Float|RTT|RTTRec)"}; // depth, stencil, n // samples, pbuffer - private ArrayList/*<GLCapabilities>*/ available = new ArrayList/*<GLCapabilities>*/(); - private ArrayList/*<Integer>*/ indices = new ArrayList/*<Integer>*/(); + private ArrayList<GLCapabilities> available = new ArrayList<GLCapabilities>(); + private ArrayList<Integer> indices = new ArrayList<Integer>(); private Object[][] data; private JTable capsTable; private int desiredCapIndex; // pfd index - private int selected = desiredCapIndex; + // private int selected = desiredCapIndex; protected JPanel pane, pane2; private boolean updateLR;// leftright private DefaultGLCapabilitiesChooser choiceExaminer = // @@ -171,13 +169,6 @@ public class GLCapsTableDemo */ 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); - GLCapsTableDemo demo = new GLCapsTableDemo(); demo.run(args); } |