code: public void addToToolbar( JComponent comp ) {
  		toolbar.add(comp,1+algBoxes.length);
  		toolbar.revalidate();
  		addedComponents.add(comp);
  	}
docs: Adds a new component into the toolbar.
  
  @param comp The component being added