int shellHandle, widgetHandle; int widgetClass = OS.topLevelShellWidgetClass (); shellHandle = OS.XtAppCreateShell (appName, appClass, widgetClass, xDisplay, null, 0); widgetHandle = OS.XmCreateScrollBar (shellHandle, null, null, 0); OS.XtManageChild (widgetHandle); OS.XtSetMappedWhenManaged (shellHandle, false); OS.XtRealizeWidget (shellHandle); int [] argList = {OS.XmNforeground, 0, OS.XmNbackground, 0}; OS.XtGetValues (widgetHandle, argList, argList.length / 2); scrollBarForeground = argList [1];  scrollBarBackground = argList [3]; OS.XtDestroyWidget (shellHandle);
void initializeScrollBar () {	int shellHandle, widgetHandle;	int widgetClass = OS.topLevelShellWidgetClass ();	shellHandle = OS.XtAppCreateShell (appName, appClass, widgetClass, xDisplay, null, 0);	widgetHandle = OS.XmCreateScrollBar (shellHandle, null, null, 0);	OS.XtManageChild (widgetHandle);	OS.XtSetMappedWhenManaged (shellHandle, false);	OS.XtRealizeWidget (shellHandle);	int [] argList = {OS.XmNforeground, 0, OS.XmNbackground, 0};	OS.XtGetValues (widgetHandle, argList, argList.length / 2);	scrollBarForeground = argList [1];  scrollBarBackground = argList [3];	OS.XtDestroyWidget (shellHandle);}