StyledText text1 = new StyledText(parent, SWT.V_SCROLL | SWT.BORDER);
String msg = "Hello";
text1.append(msg);
StyleRange styleRange = new StyleRange();
styleRange.foreground = Display.getDefault().getSystemColor(SWT.COLOR_GREEN);
styleRange.start = text1.getText().length();
styleRange.length = msg.length();
text1.setStyleRange(styleRange);
//Scroll the text to the top
text1.setTopIndex(text1.getLineCount() - 1);