}
    public void actionPerformed(ActionEvent event)    {      JTextComponent t = getTextComponent(event);      int offs = t.getDocument().getLength();      Caret c = t.getCaret();      c.moveDot(offs);      try        {          c.setMagicCaretPosition(t.modelToView(offs).getLocation());        }      catch(BadLocationException ble)         {          // Can't happen.        }    }