updateWindow2(whichWindow);
int updateRegion= OS.NewRgn(); OS.GetPortVisibleRegion(OS.GetWindowPort(whichWindow), updateRegion); OS.EraseRgn(updateRegion); OS.UpdateControls(whichWindow, updateRegion); OS.DisposeRgn(updateRegion);
	public void updateWindow(int whichWindow) {			int[] curPort = new int[1];		OS.GetPort(curPort);		OS.SetPortWindowPort(whichWindow);		OS.BeginUpdate(whichWindow);				updateWindow2(whichWindow);		OS.EndUpdate(whichWindow);		OS.SetPort(curPort[0]);	}