0

I'm implementing a Mastermind game and there is a board which has the plays (left) and the results (right). I have numerous buttons which some are enabled and other disabled. These buttons are associated to the colors of a play or a result. https://i.stack.imgur.com/E2L94.jpg "working board" In the image, there are 2 types of buttons, the enabled, green boarded, and the disabled, red boarded. When I try to use an UImanager, the nimbus, it puts all the disabled buttons of the same color, and I don't want that. https://i.stack.imgur.com/FSO4T.jpg "not working board"

I've tried to simply setBackground of a button and it didn't work.

How can I put a specific color to a button and only that button using the UIManager? That way I can have each button with it's color.

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
  • There are several suggestions [in this question](https://stackoverflow.com/questions/1590764/how-to-change-the-look-of-a-disabled-jbutton-in-java)... – deHaar May 27 '19 at 14:12

1 Answers1

0

An button can't be changed while using UIManager.