Set StyledText in SWT ExpandItem Title/Text

114 Views Asked by At

everyone. In an ExpandItem in SWT, Java you're able to set the title or header text of the ExpandItem by using the built-in method ExpandItem.setText(String text). This only supports String as input. I want to be able to use StyledText as title/header text of the ExpandItem. Is there a way to implement something like:

ExpandItem.setStyledText(StyledText text)

If not, what are my options? My main goal is to be able to change font style of the title/header text of ExpandItem. That's why I need StyledText.

0

There are 0 best solutions below