colors - How to change the look of a disabled JButton in java -


I am creating a game and when I disable a button with setEnabled (false); The button turns into gray, which fights with other colors in the game. Is it a way to change the color of the button when it is disabled?

You can add HTML coding which gives a large range of flexibility on your button, even here That's also on the disabled button.

  example: button .set text ("  3  & lt; / html & Gt; ");  

Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -