if (hasFocus () && focusIndex != -1) { Rectangle [] rects = getRectangles (focusIndex); for (int i = 0; i < rects.length; i++) { Rectangle rect = rects [i];  gc.drawRectangle (rect.x, rect.y, rect.width, rect.height); } }
void drawWidget (int control, int damageRgn, int visibleRgn, int theEvent) {	GCData data = new GCData ();	data.paintEvent = theEvent;	data.visibleRgn = visibleRgn;	GC gc = GC.carbon_new (this, data);	int selStart = selection.x;	int selEnd = selection.y;	if (selStart > selEnd) {		selStart = selection.y;		selEnd = selection.x;	}	// temporary code to disable text selection	selStart = selEnd = -1;	layout.draw (gc, 0, 0, selStart, selEnd, null, null);	if (hasFocus () && focusIndex != -1) {		Rectangle [] rects = getRectangles (focusIndex);		for (int i = 0; i < rects.length; i++) {			Rectangle rect = rects [i];//			gc.drawFocus (rect.x, rect.y, rect.width, rect.height);								gc.drawRectangle (rect.x, rect.y, rect.width, rect.height);		}	}	gc.dispose ();}