0

I'm trying to set a JButton's background color back to its default color, "Control". Where can I find that color? Thank you.

mKorbel
  • 109,525
  • 20
  • 134
  • 319
Villager
  • 89
  • 2
  • 2
  • 9

1 Answers1

2

Try it

   myButton.setBackground(null)

it change back to the default color.

may be possible answer here

How to get JButton default background color?

Community
  • 1
  • 1