Re: Resources

2001-10-13 Thread Avi Cherry
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

Re: Resources...

1998-08-31 Thread Artur Biesiadowski
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

Re: Resources...

1998-08-31 Thread Sivakumar Natarajan
Hi Why dont you take a look at java.util.ListResourceBundle. Organizing your messages as resource bundles, will also help in internationalization. -- shiv

Re: Resources...

1998-08-31 Thread Ashwani Kaul
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