How to make an io images file directory universal so the program can be packaged into a .jar or .exe file?

Take a look at java.lang.Class.getResource() to load images right from . Jar and java.util. Properties to tell your app where various directories are.

Thank you this looks like what I need. Can you give me an example of how to implement those two because I cant seem to figure it out from java's website. – Phillip Merritt Feb 12 at 7:21 (Simplified:) for a class Foo, Foo.

GetResourceAsStream('foo. Gif') will give you an input stream to access a file foo. Gif situated at the same place as Foo.class.

Figure Properties yourself — it's just a hash table with load() and store() for easy loading from / storing to a config file. – 9000 Feb 12 at 11:20.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions