Using jME in a swing application

Hello all,



I’m using jME in a swing application. followed the tutorial and everything works fine.



One thing I didn’t understand though, in practise what does this mean?


Note that you have to use app.enqueue() when modifying objects in the scene from the AWT Event Queue like you have to use java.awt.EventQueue.invokeLater() from other threads (e.g. the update loop) when changing swing elements. This can get hairy quickly if you don’t have a proper threading model planned so you might want to use NiftyGUI as it is embedded in the update loop thread and is also cross-platform compatible (e.g. android etc.).


I'm doing this in the middle of running other threads and I'm going to do some pretty heavy computing so I don't want to be messing up computer resources.
More specifically:
- Do I have to use app.enqueue() every time I change something in an object?
- Did I just loose all thread management jME had?

Thanks in advance

– Do I have to use app.enqueue() every time I change something in an object?

Everytime when youa re not in the main JME Thread.



– Did I just loose all thread management jME had?

?? specify?

Hmm I’m geting more and more confused.

But can’t explain it better yet.



I’ll try to build something first and the give examples.



Thanks for the reply!