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

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -