I use this myButton.setBackground(myColor)
to change the JButton
background color to my color, how to find it's original default background color so I can change it back? I know I can save its default background color before I change and use that, but I wonder if Java stores it somewhere so that maybe I can call something like: myButton.getClass.getDefaultBackground()
to get it back ?
btn.setBackground(new JButton().getBackground());
how about this... it will get the default color of button