summaryrefslogtreecommitdiffstats
path: root/src/demos/cubefbo/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/cubefbo/Main.java')
-rwxr-xr-xsrc/demos/cubefbo/Main.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/demos/cubefbo/Main.java b/src/demos/cubefbo/Main.java
index fc87840..bebe89e 100755
--- a/src/demos/cubefbo/Main.java
+++ b/src/demos/cubefbo/Main.java
@@ -45,11 +45,13 @@ import javax.media.opengl.GLAnimatorControl;
public class Main {
- static {
- GLProfile.initSingleton();
- }
-
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);
GLCapabilities caps = new GLCapabilities(null);
GLCanvas canvas = new GLCanvas(caps);