public void setSelection (int start, int end) {
public void setSelection (int start) {
public void setSelection (int start, int end) {	checkWidget();	/* Clear the highlight before setting the selection. */	int position = OS.XmTextGetLastPosition (handle);//	OS.XmTextSetHighlight (handle, 0, position, OS.XmHIGHLIGHT_NORMAL);	/*	* Bug in MOTIF.  XmTextSetSelection () fails to set the	* selection when the receiver is not realized.  The fix	* is to force the receiver to be realized by forcing the	* shell to be realized.  If the receiver is realized before	* the shell, MOTIF fails to draw the text widget and issues	* lots of X BadDrawable errors.	*/	if (!OS.XtIsRealized (handle)) getShell ().realizeWidget ();	/* Set the selection. */	int xDisplay = OS.XtDisplay (handle);	if (xDisplay == 0) return;	int nStart = Math.min (Math.max (Math.min (start, end), 0), position);	int nEnd = Math.min (Math.max (Math.max (start, end), 0), position);	Display display = getDisplay ();	boolean warnings = display.getWarnings ();	display.setWarnings (false);	OS.XmTextSetSelection (handle, nStart, nEnd, OS.XtLastTimestampProcessed (xDisplay));	/* Force the i-beam to follow the highlight/selection. */	OS.XmTextSetInsertionPosition (handle, nEnd);	display.setWarnings (warnings);}