[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] StyledText not working on Red Hat

I have added a StyledText widget to my Composite in a view.
The text appears as expected when run on Windows but when run on
Red Hat Linux a white rectangle appears in the UI where the StyledText should be.


I did not find a bug describing this issue so I am assuming there is something I can do...

StyledText link = new StyledText(composite, SWT.CENTER | SWT.READ_ONLY | SWT.SINGLE);

link.setBackground(composite.getBackground());
link.setText("My Text");

Color color = Display.getCurrent().getSystemColor(SWT.COLOR_BLUE);
Color background = link.getBackground();

StyleRange sr = new StyleRange(0, link.getText().length(), color, background);
sr.underline = true;
link.setStyleRange(sr);


..