rootView = new RootView(textComponent); setView(create(doc.getDefaultRootElement()));
textComponent.addPropertyChangeListener(updateHandler); modelChanged();
    public void installUI(final JComponent c)     {	super.installUI(c);    c.setOpaque(true);    textComponent = (JTextComponent) c;    Document doc = textComponent.getDocument();    if (doc == null)      {	doc = new PlainDocument();	textComponent.setDocument(doc);    }        rootView = new RootView(textComponent);    setView(create(doc.getDefaultRootElement()));        installDefaults();    installListeners();    installKeyboardActions();  }