code: public JToolBar createToolBar() {
  		// Create the tool bar
  		toolBar = new JToolBar();
  		toolBar.putClientProperty("jgoodies.headerStyle", "Both");
  		toolBar.setRollover(true);
  		toolBar.setFloatable(false);
  
  		for (int i = 0; i < beans.length; i++) {
  			Icon icon;
  			JButton button;
  
  			try {
  				final JComponent bean = beans[i];
  				URL iconURL = bean.getClass().getResource(
  						"images/" + bean.getName() + "Color16.gif");
  				icon = new ImageIcon(iconURL);
  
  				button = new JButton(icon);
  
  				ActionListener actionListener = new ActionListener() {
  					public void actionPerformed(ActionEvent e) {
  						installBean(bean);
  					}
  				};
  
  				button.addActionListener(actionListener);
  			} catch (Exception e) {
  				System.out.println("JCalendarDemo.createToolBar(): " + e);
  				button = new JButton(beans[i].getName());
  			}
  
  			button.setFocusPainted(false);
  			toolBar.add(button);
  		}
  
  		return toolBar;
  	}
docs: Creates the menu bar
  
  @return Description of the Return Value