File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 15302

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 - Experts at Building Test Data
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Look into Properties. Look at this thread David gives an example.
wood burning stoves
subject: User Preferences
It's not a secret anymore!