File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Idea about application 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 » Java in General
Bookmark "Idea about application preferences." Watch "Idea about application preferences." New topic

Idea about application preferences.

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286

I had an idea on a way to store user preferences that I am sure has been done before. So I am looking for comments from people that have tried it or what you might think of the idea; problems, alternatives, etc.
My idea is to use a class file to store all the preferences for an application/user and have getter and setter methods for accessing and writing these preferences. Then use the ObjectOutput/InputStreams to save the class file in it's current state and reload it when nessecary.
Any comments?

GenRocket - A Test Data Generation Platform
Robert Paris
Ranch Hand

Joined: Jul 28, 2002
Posts: 585
I agree. Here's the link:
subject: Idea about application preferences.
Similar Threads
making a object Serializable
Where to create files?
Properties File from Jar
Constants Class
Database Selection Question