File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Persisting Swing UI's location and Size

 
George McCain
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.`
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic