How do I go about positioning a JDialog at the center of the screen?
Use this line after the pack() method:
pack()
setLocation((Toolkit.getDefaultToolkit().getScreenSize().width)/2 - getWidth()/2, (Toolkit.getDefaultToolkit().getScreenSize().height)/2 - getHeight()/2);