wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes User Preferences 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 » Beginning Java
Bookmark "User Preferences" Watch "User Preferences" New topic

User Preferences

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286

Could someone point me in the right direction of a good way to save user preferences.
In the past I have kept a DAT file that stored attributes for my SWING GUI. Such as tool bars that are turned on or off, etc. So I have just been parcing this DAT file using BufferedReader and File.
Is there a better way?

Happy Coding,
Gregg Bolinger

GenRocket - A Test Data Generation Platform
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Look into Properties. Look at this thread David gives an example.
Consider Paul's rocket mass heater.
subject: User Preferences
Similar Threads
'.dat' file Question.
3 tier architecture advice
Idea about application preferences.
sace target as
Adding controls at runtime