> What is the best approach?
>
> Regards,
>
> Ronald.
That depends. How does a Quality object look like ?
You could probably use a property file instead of hardcoding the table.
java.util.Property can read its content using an InputStream.
Best,
Robert
Ronald Verbeek - 28 Jun 2007 19:52 GMT
Op Wed, 27 Jun 2007 09:55:14 +0200, schreef Robert Larsen:
>> What is the best approach?
>>
[quoted text clipped - 8 lines]
> Best,
> Robert
Typical data lookup objects like the Quality object have a String key and
several double values and sometimes String values and the appropriate get
methods to retrieve the values.
I already found that it is possible and workable to use a static
initializer block to initialize the HashMap or TreeMap (I want some
lookups sorted for use in a JComboBox). But if someone can suggest a
better approach it is still much appreciated.
Regards,
Ronald.