Explorar o código

Merge pull request #117 from maany/issue#85

Issue#85 fix from maany
Rémy Bouquet %!s(int64=11) %!d(string=hai) anos
pai
achega
ae0cd3d813
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      jme3-examples/src/main/java/jme3test/TestChooser.java

+ 4 - 0
jme3-examples/src/main/java/jme3test/TestChooser.java

@@ -84,6 +84,10 @@ public class TestChooser extends JDialog {
      */
     public TestChooser() throws HeadlessException {
         super((JFrame) null, "TestChooser");
+        /** This listener ends application when window is closed (x button on top right corner of test chooser).
+         * @see issue#85 https://github.com/jMonkeyEngine/jmonkeyengine/issues/85
+         */
+        setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
     }
 
     /**