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
.
question from:
https://stackoverflow.com/questions/65857939/set-styledtext-in-swt-expanditem-title-text 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…