Starting a Simple application from swing canvas

Hi every one.

I’m trying to start a simple application from another simple application that have a swing canvas on button click.

I explain :

a class Menu that extends SimpleApplication and have a swing Canvas.

and a class Game that extends SimpleApplication.



I have found this http://hub.jmonkeyengine.org/groups/gui/forum/topic/swing-application-starter/#post-135214. It works but I need it open a new window for the simpleApplication class but I need it to be on the same window



Thanks

PS: when I do in the menu class this=new Game() in the button listener I get the settings window and then the program freeze