From: Roland Haeder Date: Tue, 28 Jul 2015 06:43:52 +0000 (+0200) Subject: set visibility for debugging purposes here X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aaf21e6ad3a41d511788ed44274252f2878315f7;p=jfinancials-lib.git set visibility for debugging purposes here Signed-off-by:Roland Häder --- 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); } /**