How to set JFrame to appear centered, regardless of the Monitor resolution
Posted
by AmateurProgrammer
on Stack Overflow
See other posts from Stack Overflow
or by AmateurProgrammer
Published on 2010-03-14T15:18:48Z
Indexed on
2010/03/14
15:25 UTC
Read the original article
Hit count: 175
While working in Java, I find it hard to position my Main application window in the very center of the screen when I start the application.
Is there any way I can do that? I tried with some of the predefined methods but none worked.
BTW it doesn't have to be vertically centered, horizontal alignment is the more important goal for me. But vertical alignment is also welcome.
Thanks
© Stack Overflow or respective owner