private void setToolBarEnabled(final boolean b) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				int n = toolBar.getComponentCount();
				for (int i = 1; i < n; i++)
					toolBar.getComponent(i).setEnabled(b);
			}
		});
	}