File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

User Preferences

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: User Preferences