Search code examples
javaswingnetbeanscolorssystemcolors

How do I reach the SystemColors in Netbeans 7.4?


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


Solution

  • Try it

       myButton.setBackground(null)
    

    it change back to the default color.

    may be possible answer here

    How to get JButton default background color?