public static JToolBarUI addToolBar(JavaClass jclass, JavaMethod initMethod, Element toolbarElement, String varName ) throws UnexpectedTag{
		// Create the status bar.
		JToolBarUI tbUI = new JToolBarUI();
		
		String toolbarName = tbUI.parse(jclass, initMethod, toolbarElement);
		String position = Parser.getAttribute(toolbarElement, "position");
		if( position == null ) position = "top";
		if( position.equals("top") ){
			initMethod.addCall( toolbarName + ".setOrientation", "JToolBar.HORIZONTAL");
			tbUI.setOrientation(BorderLayout.NORTH);
			//initMethod.addCall( varName + ".add", toolbarName, panels[0] );
		}
		else if (position.equals("left")){
			initMethod.addCall( toolbarName + ".setOrientation", "JToolBar.VERTICAL");
			tbUI.setOrientation(BorderLayout.WEST);
			//initMethod.addCall( varName + ".add", toolbarName, panels[1] );
		}
		else if (position.equals("right")){
			initMethod.addCall( toolbarName + ".setOrientation", "JToolBar.VERTICAL");
			tbUI.setOrientation(BorderLayout.EAST);
			//initMethod.addCall( varName + ".add", toolbarName, panels[0] );
		}
		else {
			throw new UnexpectedTag(toolbarElement, "position attribute must be \"top\", \"left\" or \"right\".");
		}
		return tbUI;
	}