diff options
Diffstat (limited to 'src/redbook/src/glredbook1314/multisamp.java')
-rw-r--r-- | src/redbook/src/glredbook1314/multisamp.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/redbook/src/glredbook1314/multisamp.java b/src/redbook/src/glredbook1314/multisamp.java index 4aa4c3f..f3212b7 100644 --- a/src/redbook/src/glredbook1314/multisamp.java +++ b/src/redbook/src/glredbook1314/multisamp.java @@ -23,9 +23,6 @@ import javax.media.opengl.glu.GLU; public class multisamp //
extends GLSkeleton<GLCanvas>
implements GLEventListener, KeyListener {
- static {
- GLProfile.initSingleton();
- }
private GLU glu;
private boolean bgtoggle = true;
@@ -42,6 +39,14 @@ public class multisamp // }
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);
+ GLProfile.initSingleton(false); // just lazy to touch all html/jnlp's
+
multisamp demo = new multisamp();
JFrame.setDefaultLookAndFeelDecorated(true);
|