Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android forum!
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
 
Similar Threads
sace target as
'.dat' file Question.
Idea about application preferences.
3 tier architecture advice
Adding controls at runtime