public void enableToolBar(boolean b) {
		if (b) {
			topPanel.add(toolBar, BorderLayout.CENTER);
		}
		else {
			topPanel.remove(toolBar);
		}
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				validate();
			}
		});
		view.updateSize();
	}