At 1:40 PM +0200 10/13/01, Raphael Mack wrote:
>I need some resources like Images and other files in my java-app. Where
>should I install them?
>Is there a way to locate them when someone doesn't install my app to
>the default directory (then I cannot use absolute paths/the sam problem
>on other p
Canal + Belgique (Informatique) wrote:
> I guess there must be a workaround to force the calling classes to
> get the actual value for the strings from the file Resource.class (where
> they are too, according to a "find in files"). Probably making them
> non-static will do the trick, but that
Hi
Why dont you take a look at java.util.ListResourceBundle. Organizing your
messages as resource bundles, will also help in internationalization.
--
shiv
Yes, u right - Java does substitue the strings if you defined them that way & it is
not a problem.
I can suggest that you put a public method for the Resource class, which returns a
String corresponding to the String passed as the argument - could have a HashTable
made around it to get the str