webmasterbeta
New Member
Hi there:I'm trying to understand how to designate the path to a particularfile when making use of the ImageIcon(String filename) class. In thehelp files it explains that the filename arguement should be somethinglike: "images/explode.gif"My directory stucture is like this:network|__ jbsc|__imagesMy class files are in jbsc. I place a copy of explode.gif in all threedirectories.Then I tried ImageIcon("images/explode.gif"). I expected it to find thefile in the images directory but it didn't. So I tried justImageIcon("explode.gif") thinking it will at least find the file in jbsc(the same directory as the class files). Nope, it didn't. So I triedImageIcon("network/explode.gif"). This time it found it!The thing is, I want it to load from the images directory. So how do Itell it that?Alan