Styledtext
The StyledText widget is a customizable widget that can be used to display and edit text with different colors and font styles.
Swt
SWT: The Standard Widget Toolkit is a user interface library for Java maintained by the Eclipse Foundation
Others
Example |
---|
But adding a class to swt package seems harder first because there is different jars depending on the operating system used org.eclipse.swt.cocoa org.eclipse.swt.gtk .... and also because copy pasting the code of styledtext is not that easy since there is call to external methods waiting for a strict styledtext from question Add classes to org.eclipse.swt |