/** * Clears all the old StyleRanges and adds a list of StyleRanges into this <code>StyledLabel</code>. * * @param styleRanges set the StyleRanges. */ public synchronized void setStyleRanges(StyleRange[] styleRanges) { internalGetStyleRanges().clear(); addStyleRanges(styleRanges); }