MutableAttributeSet set = new SimpleAttributeSet();
StyleConstants.setForeground(set, colors[cycle]);
for (Iterator iter = wordList.iterator(); iter.hasNext();)
{
Word word =(Word) iter.next();
word.addAttributes(set);
}
cycle++;
if(cycle==colors.length)cycle=0;
}
}