private void destroyToolBar() {
		getToolBar().removeAll();
		Object o;
		AbstractButton b;
		for (Enumeration e = toolBarButtonGroup.getElements(); e.hasMoreElements();) {
			o = e.nextElement();
			if (o instanceof AbstractButton) {
				b = (AbstractButton) o;
				b.setAction(null);
				ActionListener[] al = b.getActionListeners();
				if (al != null) {
					for (ActionListener l : al)
						b.removeActionListener(l);
				}
				ItemListener[] il = b.getItemListeners();
				if (il != null) {
					for (ItemListener l : il)
						b.removeItemListener(l);
				}
				MouseListener[] ml = b.getMouseListeners();
				if (ml != null) {
					for (MouseListener l : ml)
						b.removeMouseListener(l);
				}
			}
		}
	}