From aaf21e6ad3a41d511788ed44274252f2878315f7 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 28 Jul 2015 08:43:52 +0200 Subject: [PATCH] =?utf8?q?set=20visibility=20for=20debugging=20purposes=20?= =?utf8?q?here=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../addressbook/client/gui/AddressbookFrame.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Addressbook/src/org/mxchange/addressbook/client/gui/AddressbookFrame.java b/Addressbook/src/org/mxchange/addressbook/client/gui/AddressbookFrame.java index bf0810d..0f8aee8 100644 --- a/Addressbook/src/org/mxchange/addressbook/client/gui/AddressbookFrame.java +++ b/Addressbook/src/org/mxchange/addressbook/client/gui/AddressbookFrame.java @@ -262,18 +262,21 @@ public class AddressbookFrame extends BaseFrameworkSystem implements ClientFrame this.addContact = new JDialog(); this.addContact.setTitle(this.generateFrameTitle("dialog.addContact")); this.addContact.setLayout(new GridLayout(4, 1)); - + // Only hide it on close and make it appear in middle of screen this.addContact.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); this.addContact.setLocationRelativeTo(null); - + // Set always on top and auto-focus this.addContact.setAlwaysOnTop(true); this.addContact.setAutoRequestFocus(true); - + // Initial dimension this.addContact.setSize(500, 400); - + + // Only for developing: + /* DEBUG: */ this.addContact.setVisible(true); + /* * Add listener which asks for confirmation, if data has been entered * but not saved yet. The user may appriciate this ... ;-) @@ -504,9 +507,6 @@ public class AddressbookFrame extends BaseFrameworkSystem implements ClientFrame // Finally add panel to dialog this.addContact.add(namePanel); - - // Only for developing: - /* DEBUG: */ this.addContact.setVisible(true); } /** -- 2.39.5