+ // setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ if (!Platform.isAMac())
+ {
+ this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
+ }
+ else
+ {
+ this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
+ this.addQuitHandler();
+
+ }