This is driving me crazy. I downloaded netbeans and love it but for the last 5-6 hours i have been trying to figure out why my java programs is not showing images.
When i open it with jGrasp the images and everything loads perfect.
With netbeans it will not show any images. I have been going at this for a long time now and desperaptly need help.
The way I have it working in jGrasp is like this
jcomp10 = new JButton(); ImageIcon under = new ImageIcon("image/w2.png"); JButton jcomp10 = new JButton(under);
my other image in my program i used it like this
final ImageIcon icon2 = new ImageIcon("image/java2.png"); JOptionPane.showMessageDialog(null,"blah blah", "blah blah", + JOptionPane.INFORMATION_MESSAGE, icon2);
in net beans i have tried to make new packages called resources and images and put the images in there and changed it to "resource/java2.png" and tried to put it in the same folder as the .java file and switched it to just "java2.png"
Don't know why its not working.
Im a complete noob at programming (started 4 weeks ago) so if you know why I'm failing
please try to explain it so i can understand it easy.
Thanks guys and hopefully you guys can help me
this is driving me crazy!!!
If you guys can't help ill probably go outside and punch a tree for a few hours. lol