Answers for "how do I change the opacity of a JButton"

0

how do I change the opacity of a JButton

private float opacity;
//......
public setOpacity(float opacity) {
    this.opacity = opacity;
}

public void getOpacity(){
    return this.opacity
}
Posted by: Guest on February-06-2020
0

how do I change the opacity of a JButton

MyJButton myJbtn = new MyJButton();
myJbtn.setOpacity(0.5);
myJbtn.repaint();
Posted by: Guest on February-06-2020

Code answers related to "how do I change the opacity of a JButton"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language