Getting into JMEDesktop's Swing thread

Here comes another noobish question



How do i gain access to the Swing thread and do swing stuff from it?



What i mean is that i have an event which occurs in the JME thread, that action that calls setFocusOwner() on the jme desktop, which causes JMEDesktop to get angry because setFocusOwner() isn't being called from the swing thread, so would i be able to execute code from the swing thread?

Sorry if you don't understand what i am trying to say!



Thanks for helping me out in advance!

I doesn't make JMEDesktop angry, it makes Swing angry…



http://java.sun.com/products/jfc/tsc/articles/threads/threads1.html

fun read! thanks llama, problem solved.