[jboss-user] [Beginners Corner] - Re: NetBeans IDE: Classpath not working for a JLabel icon im

super_faz do-not-reply at jboss.com
Sun Oct 28 06:11:27 EDT 2007


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099644#4099644

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099644



More information about the jboss-user mailing list