File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Forte Can't find Images Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "Forte Can Watch "Forte Can New topic
Author

Forte Can't find Images

Con Lu
Ranch Hand

Joined: Aug 27, 2002
Posts: 38
I have the following directories:-
c:\ide-userdir\sampledir\StructuralCalc
Inside StructuralCalc I have the following:-
1) StructuralCalc\pics\BankOfChina.jpg
2) SplashPanel.java
3) TrySplashPanel.java
Inside SplashPanel.java I have the following code
JLabel jL1 = new JLabel(new ImageIcon("pics\\BankOfChina.jpg"));
SplashPane1 is then included in TrySplashPanel.java
Both files compile, but when I run TrySplashPanel, the program can't seem to locate the jpg.
Note that all files in Structural Calc have been set up as a project ie All the files begin with package StructuralCalc;
Any help would be much appreciated
 
 
subject: Forte Can't find Images
 
Threads others viewed
ImageIcon Update Questions : Is it Possible?
Is it okay to use images found on the web?
JFrame Help Please
Non-Default Constructor problem
Mouse shift event coding - to trigger a predetermined sequence of images to a GUI
MyEclipse, The Clear Choice