Reputation: 25
I'm trying to make my JPanel change opacity when focused.
Right now, I use this;
Main main = new Main();
Main.setOpacity(0.75f);
This works fine but is there any way I can make the opacity go down when the JPanel is not focused and then back up to .75 when it regains focus?
Upvotes: 0
Views: 68