File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Persisting Swing UI's location and Size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Persisting Swing UI Watch "Persisting Swing UI New topic
Author

Persisting Swing UI's location and Size

George McCain
Ranch Hand

Joined: May 06, 2003
Posts: 35
I am in the stages of writing a Swing UI that will be launched through Java Web Start. Not clearly understanding the limitations of Java Web Start, i was wondering if there was a way to persist the x,y,width,height of the JFrame. So that if the user went back into that UI screen, it would retain the previous x,y,width,height.
If so, can you give a brief overview of the framework, in terms of how did you persist the data. I could always hit the DB on the exit of the UI screen to write the Rectangle (encapsulates the x,y,width,height) but i'd like to keep that information on the client computer.
Thanks in advanced
George McCain
Ranch Hand

Joined: May 06, 2003
Posts: 35
nevermind.. found it..
btw.. sorry, this should have been posted in Web Start..
PersistenceService is the service that can be used to store application state on the client.`
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Persisting Swing UI's location and Size
 
Similar Threads
Khalid's Exam
Simple Programming exercise
help with oval
How can I control the window size in a JSP page?
Animation in Swing