Rect bounds= new Rect(); int[] ctl = new int[1]; OS.CreatePushButtonControl(0, bounds, 0, ctl); OS.DisposeControl(ctl[0]);
void createDisplay (DeviceData data) {		/* Initialize Carbon */	synchronized (Display.class) {		if (!fgCarbonInitialized) {			OS.RegisterAppearanceClient();			OS.TXNInitTextension(0, 0, 0);			//OS.InitCursor();			OS.QDSwapTextFlags(OS.kQDUseCGTextRendering + OS.kQDUseCGTextMetrics);			if (OS.InitContextualMenus() != OS.noErr)				System.out.println("Display.createDisplay: error in OS.InitContextualMenus");			int[] psn= new int[2];			if (OS.GetCurrentProcess(psn) == OS.noErr)	    		OS.SetFrontProcess(psn);							// workaround for Register problem			Rect bounds= new Rect();			int[] ctl = new int[1];			OS.CreatePushButtonControl(0, bounds, 0, ctl);			OS.DisposeControl(ctl[0]);	    }		fgCarbonInitialized = true;	}		fGDeviceHandle= OS.GetMainDevice();}