getting current directory where classes are stored
How do I obtain the directory where the classes are stored so I can put my images together with the classes.
tried ImageIcon image = new ImageIcon("Star-Trek-full.gif"); but it doesn't work even though it's in the same directory as the classes. And preferrably os independent. Using java
|