From: James H. <hol...@ke...> - 2002-11-02 00:10:43
|
I think a seperate class is needed to handle preferences. There are two good ways that I see to do it. One, the Preferences can be accesible through a static Properties object. Two, use get/set methods. The first method would be easier. We could put just about anything in it and serialize the object to a file. The disadvantages would be the usual ones associated with static objects. With the second method we would have to make get/set methods for each property we want to store. I prefer the design of the second one, but the first is easier (and I think lazier). |