public void updateColorCode()
{
if (lbColorCode == null) return;
// Update color
SentimentsConfig sconfig = Calculator.getConfig();
Color color = article.isPositive() ? sconfig.getPositiveColor()
: article.isNegative() ? sconfig.getNegativeColor() : null;
lbColorCode.setColor(color);
lbColorCode.setToolTipText("<html>" +
"Pos words: " + article.getPositiveSentimentsCount() + "<br>" +
"Neg words: " + article.getNegativeSentimentsCount());