[SOLVED] 2 SimpleApplication with the same running main

Is it possible to have two graphic apps [each of them extends simpleApplication] running on the same display? I mean, if I do run HelloLoop twice at the same time, only one for time is really running, but the other has lost his focus and it is waiting.

I ask this, because I’m trying to verify if my server broadcasts messages in the right way to clients and therefore I would to see objects of one window changing their position because of movements done on the other client window [on the same pc].

Thanks

r.

I found the method: app.setPauseOnLostFocus(false);

But is it the correct manner to do this? Or is there a better way?

Because jmp shows me:

[java]GRAVE: Error while copying native libraries

java.io.FileNotFoundException: ProjectPath\lwjgl.dll (Can not access the file. The file is being used by another process)

at java.io.FileOutputStream.open(Native Method)

at java.io.FileOutputStream.<init>(FileOutputStream.java:179)

at java.io.FileOutputStream.<init>(FileOutputStream.java:131)

at com.jme3.system.Natives.extractNativeLib(Natives.java:72)

at com.jme3.system.Natives.extractNativeLibs(Natives.java:167)

at com.jme3.system.JmeSystem.initialize(JmeSystem.java:347)

at com.jme3.system.JmeSystem.newContext(JmeSystem.java:267)

at com.jme3.app.Application.start(Application.java:316)

at com.jme3.app.Application.start(Application.java:299)

at com.jme3.app.SimpleApplication.start(SimpleApplication.java:122)

at mygame.Main.createApp(Main.java:11)

at mygame.Main.main(Main.java:4)

[/java]

You can have two apps running at the same time, but only one of them can have a display context, the other must be headless.