super.setBackground(getBackground());
public StyledText(Composite parent, int style) {	super(parent, checkStyle(style));	// set the bg/fg in the OS to ensure that these are the same as StyledText, necessary	// for ensuring that the bg/fg the IME box uses is the same as what StyledText uses	super.setForeground(getForeground());	super.setBackground(getBackground());	Display display = getDisplay();	isMirrored = (super.getStyle() & SWT.MIRRORED) != 0;	fixedLineHeight = true;	if ((style & SWT.READ_ONLY) != 0) {		setEditable(false);	}	leftMargin = rightMargin = isBidiCaret() ? BIDI_CARET_WIDTH - 1: 0;	if ((style & SWT.SINGLE) != 0 && (style & SWT.BORDER) != 0) {		leftMargin = topMargin = rightMargin = bottomMargin = 2;	}	alignment = style & (SWT.LEFT | SWT.RIGHT | SWT.CENTER);	if (alignment == 0) alignment = SWT.LEFT;	clipboard = new Clipboard(display);	installDefaultContent();	renderer = new StyledTextRenderer(getDisplay(), this);	renderer.setContent(content);	renderer.setFont(getFont(), tabLength);	defaultCaret = new Caret(this, SWT.NULL);	if ((style & SWT.WRAP) != 0) {		setWordWrap(true);	}	if (isBidiCaret()) {		createCaretBitmaps();		Runnable runnable = new Runnable() {			public void run() {				int direction = BidiUtil.getKeyboardLanguage() == BidiUtil.KEYBOARD_BIDI ? SWT.RIGHT : SWT.LEFT;				if (direction == caretDirection) return;				if (getCaret() != defaultCaret) return;				Point newCaretPos = getPointAtOffset(caretOffset);				setCaretLocation(newCaretPos, direction);			}		};		BidiUtil.addLanguageListener(handle, runnable);	}	setCaret(defaultCaret);		calculateScrollBars();	createKeyBindings();	setCursor(display.getSystemCursor(SWT.CURSOR_IBEAM));	installListeners();	initializeAccessible();}