Dimension size = textComponent.getSize(); rootView.removeUpdate(ev, new Rectangle(0, 0, size.width, size.height),
rootView.removeUpdate(ev, getVisibleEditorRect(),
    public void removeUpdate(DocumentEvent ev)    {      Dimension size = textComponent.getSize();      rootView.removeUpdate(ev, new Rectangle(0, 0, size.width, size.height),                            rootView.getViewFactory());    }