Re: Application properties handling advice



Andrew Thompson wrote:
Petterson Mikael wrote:
..

I am building an application where we need some default settings to run it. User shall then have the possiblity to change them.

..

Is there a simpler/better way to do it?


The strategy you outlined sounds like the best way to
go about it (that is how I would generally do it).

You might also look into java.util.Preferences, and java.util.Properties - Preferences seems to take care of the path for you. Since I deal a lot with web start apps. I would generally use javax.jnlp.PersistenceService, which can be used from a sand boxed application.

HTH

Thanks!

It is always nice to get a second opinion.

cheers,

//mikael
.



Relevant Pages