int[] focusControl= new int[1]; OS.GetKeyboardFocus(wHandle, focusControl); if (focusControl[0] != fFocusControl) { OS.SetKeyboardFocus(wHandle, focusHandle, (short)-1);
if (wHandle != 0) { int[] focusControl= new int[1]; OS.GetKeyboardFocus(wHandle, focusControl); if (focusControl[0] != fFocusControl) { OS.SetKeyboardFocus(wHandle, focusHandle, (short)-1);   }
	boolean setMacFocusHandle(int wHandle, int focusHandle) {			if (fFocusControl != focusHandle) {			int oldFocus= fFocusControl;			fFocusControl= focusHandle;						if (oldFocus != 0)				windowProc(oldFocus, false);						//fFocusControl= focusHandle;						int[] focusControl= new int[1];			OS.GetKeyboardFocus(wHandle, focusControl);			if (focusControl[0] != fFocusControl) {				OS.SetKeyboardFocus(wHandle, focusHandle, (short)-1);				//if (rc != OS.kNoErr)				//	System.out.println("Display.setMacFocusHandle: SetKeyboardFocus " + rc);			}			if (fFocusControl != 0)				windowProc(fFocusControl, true);		}		return true;	}