How to set JFrame and JDialog to appear centered on the screen

Printable View