
-----------------------------------
Regeane
Tue May 30, 2006 4:17 pm

JFrame location
-----------------------------------
Is it possible to change the location a JFrame comes up on the screen (like, other than in the upper left hand corner), and if so, how?

-----------------------------------
HellblazerX
Tue May 30, 2006 4:26 pm


-----------------------------------
Yes, there is a setLocation () method in the JFrame class.  Also, if you want the computer to automatically center the JFrame for you, you can call up the method setLocationRelativeTo () and set null as the parameter.

-----------------------------------
Regeane
Tue May 30, 2006 11:00 pm


-----------------------------------
Aha! Thanks very much! :D
