Hi, this is the easiest bug fix i guess. Anyways, i have modified the constructor of the TestChooser(jme3test.TestChooser) to include a window listener and dispose the instance when the x button on the top right corner of the dialog is clicked. Here’s the modified constructor :
public TestChooser() throws HeadlessException {
super((JFrame) null, “TestChooser”);
/** This listener ends application when window is closed (x button on top right).
* @see issue#85 Demo application does not end when the window is closed. · Issue #85 · jMonkeyEngine/jmonkeyengine · GitHub
*/
addWindowListener(new WindowAdapter(){
@Override
public void windowClosing(WindowEvent e)
{
dispose();
}
});
}
The code works fine now. Can i send the pull request?
Code comparison can be seen here :https://github.com/maany/jmonkeyengine/compare/issue%2385