File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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

how to set pos of a frame

arun mahajan
Ranch Hand

Joined: Dec 07, 2001
Posts: 305
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.
Dirk Schreckmann

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

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: how to set pos of a frame
It's not a secret anymore!