// Only hide it on close and make it appear in middle of screen
this.addContact.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
- this.addContact.setLocationRelativeTo(null);
+ this.addContact.setLocationRelativeTo(this.frame);
// Set always on top and auto-focus
this.addContact.setAlwaysOnTop(true);