Close only JME Basic Game Frame

Hy,

i have a JFrame with some JButton, and i start the JME Frame over a JButton.

Now i want to close the JME Frame over an other JButton.

With normal Frames i can use something like this: .setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);



Thats not possible with the JME Frame.

The same think is, when i click on the X from the JME Frame. It also close my normal JFrame.

Can somebody help me

if you are extending SimpleGame, it should be enough to override quit and make it simply say:


    protected void quit() {
        if (display != null)
            display.close();
    }