Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 JFrame location
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Regeane




PostPosted: 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
Sponsor
sponsor
HellblazerX




PostPosted: 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




PostPosted: Tue May 30, 2006 11:00 pm   Post subject: (No subject)

Aha! Thanks very much! Very Happy
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: