title: How to set JFrame to appear centered, regardless of monitor resolution?
body: <p>While working with Java, I find it hard to position my main window in the center of the screen when I start the application.</p>
  
  <p>Is there any way I can do that?
  It doesn't have to be vertically centered, horizontal alignment is the more important goal for me. But vertical alignment is also welcome.</p>