installDefaults();
else { doc.addDocumentListener(documentHandler); modelChanged(); }
  public void installUI(final JComponent c)  {    super.installUI(c);    textComponent = (JTextComponent) c;    Document doc = textComponent.getDocument();    if (doc == null)      {	doc = getEditorKit(textComponent).createDefaultDocument();	textComponent.setDocument(doc);      }    installDefaults();    installListeners();    installKeyboardActions();    // We need to trigger this so that the view hierarchy gets initialized.    modelChanged();  }