fTooltipWindowProc= createCallback("handleTooltipWindowCallback", 3);
protected void init () {	super.init ();					/* Create the callbacks */	timerProc= createCallback("timerProc", 2);	caretProc= createCallback("caretProc", 2);	mouseHoverProc= createCallback("mouseHoverProc", 2);	fWindowProc= createCallback("handleWindowCallback", 3);	fMouseProc= createCallback("handleMouseCallback", 3);		fControlActionProc= createCallback("handleControlAction", 2);	fControlProc= createCallback("handleControlProc", 3);		//fUserPaneDrawProc= createCallback("handleUserPaneDraw", 2);	fUserPaneHitTestProc= createCallback("handleUserPaneHitTest", 2);		fDataBrowserDataProc= createCallback("handleDataBrowserDataCallback", 5);	fDataBrowserCompareProc= createCallback("handleDataBrowserCompareCallback", 4);	fDataBrowserItemNotificationProc= createCallback("handleDataBrowserItemNotificationCallback", 3);		fMenuProc= createCallback("handleMenuCallback", 3);		// create standard event handler	fApplicationProc= createCallback("handleApplicationCallback", 3);	int[] mask= new int[] {		OS.kEventClassCommand, OS.kEventProcessCommand,				//OS.kEventClassAppleEvent, OS.kAEQuitApplication,		OS.kEventClassAppleEvent, OS.kEventAppleEvent,				// we track down events here because we need to know when the user 		// has clicked in the menu bar		OS.kEventClassMouse, OS.kEventMouseDown,		// we track up, dragged, and moved events because		// we need to get these events even if the mouse is outside of the window.		OS.kEventClassMouse, OS.kEventMouseDragged,		OS.kEventClassMouse, OS.kEventMouseUp,		OS.kEventClassMouse, OS.kEventMouseMoved,					SWT_USER_EVENT, 54321,		SWT_USER_EVENT, 54322,	};	if (OS.InstallEventHandler(OS.GetApplicationEventTarget(), fApplicationProc, mask.length / 2, mask, 0, null) != OS.noErr)		error (SWT.ERROR_NO_MORE_CALLBACKS);			int textInputProc= createCallback("handleTextCallback", 3);	mask= new int[] {		OS.kEventClassKeyboard, OS.kEventRawKeyDown,		OS.kEventClassKeyboard, OS.kEventRawKeyModifiersChanged,		OS.kEventClassKeyboard, OS.kEventRawKeyRepeat,		OS.kEventClassKeyboard, OS.kEventRawKeyUp,	};	if (OS.InstallEventHandler(OS.GetUserFocusEventTarget(), textInputProc, mask.length / 2, mask, 0, null) != OS.noErr)		error (SWT.ERROR_NO_MORE_CALLBACKS);			buttonFont = Font.carbon_new (this, getThemeFont(OS.kThemeSmallSystemFont));	buttonShadowThickness= 1;	//scrolledInsetX = scrolledInsetY = 15;	scrolledMarginX= scrolledMarginY= 15;	compositeForeground = 0x000000;	compositeBackground = -1; // 0xEEEEEE;		groupFont = Font.carbon_new (this, getThemeFont(OS.kThemeSmallEmphasizedSystemFont));		dialogForeground= 0x000000;	dialogBackground= 0xffffff;		labelForeground = 0x000000;	labelBackground = -1; 	labelFont = Font.carbon_new (this, getThemeFont(OS.kThemeSmallSystemFont));		listForeground = 0x000000;	listBackground = 0xffffff;	listSelect = listForeground;	// if reversed colors	listFont= Font.carbon_new (this, new MacFont((short)1)); // Mac Appl Font	scrollBarForeground = 0x000000;	scrollBarBackground = 0xffffff;	textForeground = 0x000000;	textBackground = 0xffffff;	textHighlightThickness = 1; // ???	textFont= Font.carbon_new (this, new MacFont((short)1));	// Mac Appl Font	COLOR_WIDGET_DARK_SHADOW = 		Color.carbon_new(this, 0x333333, true);		COLOR_WIDGET_NORMAL_SHADOW = 	Color.carbon_new(this, 0x666666, true);		COLOR_WIDGET_LIGHT_SHADOW = 	Color.carbon_new(this, 0x999999, true);	COLOR_WIDGET_HIGHLIGHT_SHADOW = Color.carbon_new(this, 0xCCCCCC, true);		COLOR_WIDGET_BACKGROUND = 		Color.carbon_new(this, 0xFFFFFF, true);		COLOR_WIDGET_BORDER = 			Color.carbon_new(this, 0x000000, true);		COLOR_LIST_FOREGROUND = 		Color.carbon_new(this, 0x000000, true);		COLOR_LIST_BACKGROUND = 		Color.carbon_new(this, 0xFFFFFF, true);		COLOR_LIST_SELECTION = 			Color.carbon_new(this, 0x6666CC, true);	COLOR_LIST_SELECTION_TEXT = 	Color.carbon_new(this, 0xFFFFFF, true);	COLOR_INFO_BACKGROUND = 		Color.carbon_new(this, 0xFFFFE1, true);		fHoverThemeFont= (short) OS.kThemeSmallSystemFont;	defaultFont = Font.carbon_new (this, getThemeFont(OS.kThemeSmallSystemFont));		defaultForeground = compositeForeground;	defaultBackground = compositeBackground;}