image load to a NetBeans 5.5 application using jdk6

i am using the following code to add an image to a system tray icon...

Image image = Toolkit.getDefaultToolkit().getImage("lightening.PNG");

trayIcon = new TrayIcon(image, "Tray Demo", popup);

now, since i am using NetBeans, it creates a jar file in the dist folder....and i am wondering, where i am supposed to place the image, so that it will show on the task bar...right now, the program runs fine, and i can even see the sub menu, but the image is not loaded......i tried the same code using just jcreator and one class file, and if i place the image in the same folder as the class file, the program run perfect and i can see the image, so i know it is not the code...but rather, where to place the image...i have tried everything...i think i have a copy of that image in every folder in the project folder

any help is apreciated, thank you very much

sam

[898 byte] By [semsem22a] at [2007-10-3 3:04:13]
# 1
Try this:Right-click the project, click Properties, click Libraries, select Compile, and add the png file's directory to the list.
ChuckBinga at 2007-7-14 20:54:12 > top of Java-index,Java Essentials,Java Programming...
# 2
i tried that, but it doesn't work.......there is no where to add the PNG to any list there...under the compile tab there is no place to add the png fileplease helpthankssam
semsem22a at 2007-7-14 20:54:12 > top of Java-index,Java Essentials,Java Programming...
# 3
add the png file's directory ...
ChuckBinga at 2007-7-14 20:54:12 > top of Java-index,Java Essentials,Java Programming...
# 4
problem sovled....thank you very much for you help....can you please explain to me what happenes when i add the directory to the runtime libraries....i am new to java, and NetBeans, but not new to OOPthank yousam
semsem22a at 2007-7-14 20:54:12 > top of Java-index,Java Essentials,Java Programming...
# 5
Please read related help information in NetBeans. It uses its own concept of a classpath, this is how to alter it.
ChuckBinga at 2007-7-14 20:54:12 > top of Java-index,Java Essentials,Java Programming...