}
int[] psn= new int[2]; if (OS.GetCurrentProcess(psn) == OS.kNoErr) OS.SetFrontProcess(psn); }
void createDisplay (DeviceData data) {		/* Initialize Carbon */	synchronized (Display.class) {		if (!fgCarbonInitialized) {			OS.RegisterAppearanceClient();			OS.TXNInitTextension();			//OS.InitCursor();			OS.QDSwapTextFlags(OS.kQDUseCGTextRendering + OS.kQDUseCGTextMetrics);			if (OS.InitContextualMenus() != OS.kNoErr)				System.out.println("Display.createDisplay: error in OS.InitContextualMenus");		}		fgCarbonInitialized = true;	}		fGDeviceHandle= OS.GetMainDevice();}