checkBackground ();
void createWidget (int index) {	checkOrientation (parent);	super.createWidget (index);	checkBuffered ();	setParentTraversal ();	overrideTranslations ();		/*	* Register for the IME.  This is necessary on single byte	* platforms as well as double byte platforms in order to	* get composed characters. For example, accented characters	* on a German locale.	*/	if (!hasIMSupport()) {		OS.XmImRegister (handle, 0);		int focusHandle = focusHandle ();		if (handle != focusHandle) {			OS.XmImRegister (focusHandle, 0);		}	}		/*	* Feature in MOTIF.  When a widget is created before the	* parent has been realized, the widget is created behind	* all siblings in the Z-order.  When a widget is created	* after the parent has been realized, it is created in	* front of all siblings.  This is not incorrect but is	* unexpected.  The fix is to force all widgets to always	* be created behind their siblings.	*/	int topHandle = topHandle ();	if (OS.XtIsRealized (topHandle)) {		int window = OS.XtWindow (topHandle);		if (window != 0) {			int display = OS.XtDisplay (topHandle);			if (display != 0) OS.XLowerWindow (display, window);		}		/*		* Make sure that the widget has been properly realized		* because the widget was created after the parent		* has been realized.  This is not part of the fix		* for Z-order in the code above. 		*/		realizeChildren ();	}		/*	* Bug in Motif.  Under certain circumstances, when a	* text widget is created as a child of another control	* that has drag and drop, starting a drag in the text	* widget causes a protection fault.  The fix is to	* disable the built in drag and drop for all widgets	* by overriding the drag start traslation.	*/	OS.XtOverrideTranslations (handle, display.dragTranslations);		/*	* Feature in Motif.  When the XmNfontList resource is set for	* a widget, Motif creates a copy of the fontList and disposes	* the copy when the widget is disposed.  This means that when	* the programmer queries the font, not only will the handle be	* different but the font will be unexpectedly disposed when	* the widget is disposed.  This can cause GP's when the font	* is set in another widget.  The fix is to cache the font that	* the programmer provides.  The initial value of the cache is	* the default font for the widget.	*/	font = defaultFont ();}