| 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
|
|
|