removeToolBar(toolBar);  toolBar = GUIUtilities.loadToolBar("view.toolbar"); toolBar.add(Box.createGlue()); addToolBar(toolBar);
{ Component[] components = toolBars.getComponents(); for(int i = 0; i < components.length; i++) { if(components[i] == toolBar) { toolBars.remove(toolBar); toolBar = GUIUtilities.loadToolBar("view.toolbar"); toolBar.add(Box.createGlue()); toolBars.add(toolBar,i); getRootPane().revalidate(); return; } } } else { toolBar = GUIUtilities.loadToolBar("view.toolbar"); toolBar.add(Box.createGlue()); addToolBar(toolBar); }
	private void loadToolBar()	{		if(jEdit.getBooleanProperty("view.showToolbar"))		{			if(toolBar != null)				removeToolBar(toolBar);			toolBar = GUIUtilities.loadToolBar("view.toolbar");			toolBar.add(Box.createGlue());			addToolBar(toolBar);		}		else if(toolBar != null)		{			removeToolBar(toolBar);			toolBar = null;		}	}