Editor editor = Globals.curEditor(); JComponent c = editor.getJComponent();
Editor theEditor = Globals.curEditor(); JComponent c = theEditor.getJComponent();
            public void run() {                Editor editor = Globals.curEditor();                JComponent c = editor.getJComponent();                c.scrollRectToVisible(r);            }