Icône de l'étiquette de changement de swing java

// pic is the label variable name
//b2.png is the picture 
pic.setIcon(new javax.swing.ImageIcon(getClass().getResource("b2.png")));
Determined Dingo