if(_sideVis) {
if(_sideVis && _side != null) {
	private void update() {		Iterator j;		Container major, minor;		Component bottomOld = null;		Component sideOld = null;		Component centerOld = null;		/* find out which views are displayed and note them */		if(_bottom instanceof CloseableTabbedPane) {			bottomOld = ((CloseableTabbedPane) _bottom).getSelectedComponent();		}		if(_side instanceof CloseableTabbedPane) {			sideOld = ((CloseableTabbedPane) _side).getSelectedComponent();		}		if(_center instanceof CloseableTabbedPane) {			centerOld = ((CloseableTabbedPane) _center).getSelectedComponent();		}				// TODO: these two if blocks are still buggy & don't save sizing parameters correctly		// save the split-pane resize weights (if there are any) for restoration		/*		if(_center != null && _center.getParent() instanceof JSplitPane) {			JSplitPane jsp = (JSplitPane) _center.getParent();			//getDividerSize() getLastDividerLocation() 			//_horizontalResizeWeight = (double) jsp.getLastDividerLocation() / (double) jsp.getHeight();			System.out.println("set horizontal ratio to " + jsp.getLastDividerLocation());		}		if(_side != null && _side.getParent() instanceof JSplitPane) {			JSplitPane jsp = (JSplitPane) _side.getParent();			//_verticalResizeWeight = (double) jsp.getLastDividerLocation() / (double) jsp.getWidth();			System.out.println("set vertical ratio to " + jsp.getLastDividerLocation());		}		*/		/* build the panes */		_bottom = makePane(_bottomSet);		_side = makePane(_sideSet);		_center = makePane(_centerSet);		/* restore whichever views were open before the update */		if(_bottom instanceof CloseableTabbedPane) {			CloseableTabbedPane tmpPane = (CloseableTabbedPane) _bottom;			tmpPane.setTabPlacement(CloseableTabbedPane.BOTTOM);			if(tmpPane.indexOfComponent(bottomOld) >= 0) {				tmpPane.setSelectedIndex(tmpPane.indexOfComponent(bottomOld));			}		}		if(_side instanceof CloseableTabbedPane && ((CloseableTabbedPane) _side).indexOfComponent(sideOld) >= 0) { 			CloseableTabbedPane tmpPane = (CloseableTabbedPane) _side;			tmpPane.setSelectedIndex(tmpPane.indexOfComponent(bottomOld));		}		if(_center instanceof CloseableTabbedPane && ((CloseableTabbedPane) _center).indexOfComponent(centerOld) >= 0) { 			CloseableTabbedPane tmpPane = (CloseableTabbedPane) _center;			tmpPane.setSelectedIndex(tmpPane.indexOfComponent(centerOld));		}				// Looks like		// |----------|		// |        | |		// | center | |		// |--------| |		// |________|_|		if(_bottomVis) {			minor = new JSplitPane(JSplitPane.VERTICAL_SPLIT,					_center, _bottom);			((JSplitPane) minor).setDividerSize(2);			((JSplitPane) minor).setResizeWeight(_verticalResizeWeight);		} else {			minor = _center;		}				if(_sideVis) {			major = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, 					minor, _side);			((JSplitPane) major).setDividerSize(2);			((JSplitPane) major).setResizeWeight(_horizontalResizeWeight);		} else {			major = minor;		}				_gui = major;		_window.setContentPane(_gui);		validate();		_window.getRootPane().validate();	}