Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java swing change label icon

// pic is the label variable name
//b2.png is the picture 
pic.setIcon(new javax.swing.ImageIcon(getClass().getResource("b2.png")));
 
PREVIOUS NEXT
Tagged: #java #swing #change #label #icon
ADD COMMENT
Topic
Name
6+3 =