]> git.mxchange.org Git - jaddressbook-lib.git/commitdiff
Moved default close operation into init method to keep constructors small
authorRoland Haeder <roland@mxchange.org>
Thu, 23 Jul 2015 13:26:25 +0000 (15:26 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 23 Jul 2015 13:26:25 +0000 (15:26 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

Addressbook/src/org/mxchange/addressbook/client/gui/AddressbookFrame.java

index a8507fb986d96023d8184f05a94ce5ba835e213b..679684641897d4b3963daf725b13775f1612de93 100644 (file)
@@ -90,9 +90,6 @@ public class AddressbookFrame extends BaseFrameworkSystem implements ClientFrame
        // Set frame instance
        this.frame = new JFrame(AddressbookApplication.printableTitle());
 
-       // Set default close operation
-       this.frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
-
        // Set client here
        this.setClient(client);
     }
@@ -174,6 +171,9 @@ public class AddressbookFrame extends BaseFrameworkSystem implements ClientFrame
        // Debug line
        this.getLogger().trace("CALLED!");
 
+       // Set default close operation
+       this.frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+
        // Register shutdown listener
        this.frame.addWindowListener(new WindowAdapter() {
            /**