On 22 Aug 2005 20:32:59 -0700, "antoine" <>
wrote or quoted :
>it becomes very complicated to find what I'm looking for...
>is there a simple way to make things better ?
The problem is Properties is a HashMap/Hashtable (I forget which).
HashMaps don't have an order. They use the effective random ordering
of hash to slot number, i.e. hashCode/length hasharray.
What can you do about it?
1. Write your own save method that does a sort then save.
2. use the sort feature of your text editor when you set out to edit
the file.
3. write your own properties class that has the features you want. I
wrote one that allows multiple values per key. You are welcome to it.
Just send me an email with the subject MultiProperties.
4. Use the Preferences class.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com