From 5093727dbea90ca7d0eb6e4a9ee4bf51f7ce1650 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 23 Jul 2015 15:26:25 +0200 Subject: [PATCH] =?utf8?q?Moved=20default=20close=20operation=20into=20ini?= =?utf8?q?t=20method=20to=20keep=20constructors=20small=20Signed-off-by:Ro?= =?utf8?q?land=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../mxchange/addressbook/client/gui/AddressbookFrame.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Addressbook/src/org/mxchange/addressbook/client/gui/AddressbookFrame.java b/Addressbook/src/org/mxchange/addressbook/client/gui/AddressbookFrame.java index a8507fb9..67968464 100644 --- a/Addressbook/src/org/mxchange/addressbook/client/gui/AddressbookFrame.java +++ b/Addressbook/src/org/mxchange/addressbook/client/gui/AddressbookFrame.java @@ -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() { /** -- 2.39.5