Answers for "how to change java swing LAF"

2

change button color java swing

botton.SetBackground(Color.red);
Posted by: Guest on March-05-2020
-1

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")));
Posted by: Guest on March-13-2020

Code answers related to "how to change java swing LAF"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language