public void configureColor ( AbstractButton button ) { Assert . notNull ( button , "button" ) ; if ( foreground != null ) { button . setForeground ( foreground ) ; } if ( background != null ) { button . setBackground ( background ) ; } }
Configures the given button with colours for background and foreground if available .