I embedded my jmonkey application on swing and i have also a button on my swing page.
When i click the button , the jmonkey stops but if i click on jmonkey panel then it continues.
I am not doing any operation on button , just print message.
How can i resolve this?
Thanks in advance.
Try this.setPauseOnLostFocus(false); in your SimpleApplication.
Dont forget to never modify the scene directly on AWT button presses but only via callables: