public void addToToolbar( JComponent comp ) {
		toolbar.add(comp,1+algBoxes.length);
		toolbar.revalidate();
		addedComponents.add(comp);
	}
public void addToToolbar ( JComponent comp ) { toolbar . add ( comp , 1 + algBoxes . length ) ; toolbar . revalidate ( ) ; addedComponents . add ( comp ) ; }
Adds a new component into the toolbar.

@param comp The component being added