super(new FlowLayout(FlowLayout.LEFT, 0, 0));
this.component = component;
// If the component is a LEV we can listen for changes to the name of the file
if(component instanceof LibraryElementView){
LibraryElementView lev = (LibraryElementView)component;
((EventTarget)lev.getDocument()).addEventListener("MutationEvent", this, false);
}
this.title = new JLabel(title);
this.closeButton = new TabCloseButton(pane, component);