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 ... ;-)
// Finally add panel to dialog
this.addContact.add(namePanel);
-
- // Only for developing:
- /* DEBUG: */ this.addContact.setVisible(true);
}
/**