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);
}

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 ) ; }
updates the preview and current color objects based on the saved colors .
