focus(true); installForeColor(data.foreground); OS.PenSize((short) fLineWidth, (short) fLineWidth); fRect.set(x, y, width+1, height+1); OS.FrameOval(fRect.getData()); unfocus(true);
try { if (focus(true, null)) { installForeColor(data.foreground); OS.PenSize((short) fLineWidth, (short) fLineWidth); fRect.set(x, y, width+1, height+1); OS.FrameOval(fRect.getData()); } } finally { unfocus(true); }
public void drawOval(int x, int y, int width, int height) {	if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);	if (width < 0) {		x = x + width;		width = -width;	}	if (height < 0) {		y = y + height;		height = -height;	}	focus(true);	installForeColor(data.foreground);	OS.PenSize((short) fLineWidth, (short) fLineWidth);	fRect.set(x, y, width+1, height+1);	OS.FrameOval(fRect.getData());	unfocus(true);}