summaryrefslogtreecommitdiffstats
path: root/src/demos/misc/Picking.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/misc/Picking.java')
-rwxr-xr-xsrc/demos/misc/Picking.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/demos/misc/Picking.java b/src/demos/misc/Picking.java
index 5c55272..52afca0 100755
--- a/src/demos/misc/Picking.java
+++ b/src/demos/misc/Picking.java
@@ -22,11 +22,15 @@ import com.jogamp.opengl.util.Animator;
public class Picking
{
- 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);
+
new Picking();
}