public void close(Dockable dockable) {
		int index = mDockables.indexOf(dockable);
		if (index != -1) {
			remove(dockable);
			mDockables.remove(dockable);
			mHeader.close(dockable);
			if (mDockables.isEmpty()) {
				restore();
				mDock.remove(this);
				mDock.revalidate();
				mDock.repaint();
				mDock = null;
			} else {
				if (index > 0) {
					index--;
				}
				setCurrentDockable(mDockables.get(index));
			}
		}
	}