This content has been marked as final.
Show 1 reply
-
1. Re: NetBeans IDE: Classpath not working for a JLabel icon im
super_faz Oct 28, 2007 6:11 AM (in response to victorj42)Hello,
"victorj42" wrote:
gallows.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gallows.gif")));
Your "gallows.gif" image needs to be in your jar file.
The "simpliest" way is to put it in the default package of your source folder.