setSize(view.getPreferredSpan(X_AXIS), view.getPreferredSpan(Y_AXIS));
    public HTMLRootView(JComponent c, View view, EditorKit kit, Document doc)    {      super(null);      component = c;      editorKit = kit;      document = doc;      setView(view);    }