JFrame location
Author |
Message |
Regeane
|
Posted: Tue May 30, 2006 4:17 pm Post subject: 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? |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
HellblazerX

|
Posted: Tue May 30, 2006 4:26 pm Post subject: (No subject) |
|
|
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
|
Posted: Tue May 30, 2006 11:00 pm Post subject: (No subject) |
|
|
Aha! Thanks very much!  |
|
|
|
|
 |
|
|