question: public void updated ( ) { currentColor = HtmlColors . decode ( getSettingValue ( ) ) ; secondaryColor = HtmlColors . decode ( baseColor ) ; Color foregroundColor ; Color backgroundColor ; if ( type == FOREGROUND ) { foregroundColor = currentColor ; backgroundColor = secondaryColor ; } else { foregroundColor = secondaryColor ; backgroundColor = currentColor ; } preview . setForeground ( foregroundColor ) ; preview . setBackground ( backgroundColor ) ; }
target:  Updates the preview and current Color objects based on the saved colors.