]> git.mxchange.org Git - addressbook-swing.git/commitdiff
set visibility for debugging purposes here
authorRoland Haeder <roland@mxchange.org>
Tue, 28 Jul 2015 06:43:52 +0000 (08:43 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 28 Jul 2015 06:43:52 +0000 (08:43 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

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

index bf0810d779c3f4af00bf93e5bd0d7fee50a3f1ab..0f8aee83700616680624f3565a19e64550f83dff 100644 (file)
@@ -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);
        }
 
        /**