This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

saving settings

 
tomo black
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i have designed a GUI which accepts user input. i would like to be able to save these values, so that the next time the user runs the application, they do not have to re-enter those values again but can retrieve them from a menubar option.
i am not really sure how to go about this task. I was going to use java.util.Properties to do this. is this the right way to go or is there a better way?
any help would be much appreciated.
thanks in advance
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, java.utils.Properties is the way that this is usually done. Here is the section on Properties in the Java tutorial if you need any help on this. A new class, java.util.Preferences, was added in 1.4 that provides a more hierarchical preferences scheme, but Properties should be good for most things.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic