A bozo's blog
// Always pack before using setLocationRelativeTo myDialog.dialog.pack(); myDialog.dialog.setLocationRelativeTo(frame);