This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes how to set pos of a frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to set pos of a frame" Watch "how to set pos of a frame" New topic
Author

how to set pos of a frame

arun mahajan
Ranch Hand

Joined: Dec 07, 2001
Posts: 305
Hi,
I have made an application in swing. Whenever I open the application it gets open up at my screen's left top corner. Is there any way I can set the position of the application say at 100,100 pixel from top left corner or in the center etc.
Regards,
Arun
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Frame::setLocation( int , int )


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to set pos of a frame
 
Similar Threads
Launching a window from JavaFx Main.fx
Position etc. of Webstart windows
How to set body start point in HTML?
JDialog opening position
Grid header for JTable