java - Swing : Setting JButton's background - Stack Overflow
2011-11-19u2002·u2002I want to set the background color of JButton. For that I use setBackground() method. This method jsut sets the border color of the button and not the whole button of the specified color. Why so ? This is the only method to set background color of a button.
Get Price