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

