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
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "User Preferences" Watch "User Preferences" New topic
Author

User Preferences

Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

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
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: User Preferences
 
Similar Threads
Adding controls at runtime
Idea about application preferences.
3 tier architecture advice
sace target as
'.dat' file Question.