/** * Makes the bar visible and sensitive to LogOutoutListener events that should deliver actual * content to be displayed. */ public void annotate() { annotated = true; elementAnnotations = Collections.<Element, AnnotateLine>emptyMap(); doc.addDocumentListener(this); textComponent.addComponentListener(this); editorUI.addPropertyChangeListener(this); revalidate(); // resize the component }