}
      public void actionPerformed(ActionEvent event)      {        JTextComponent t = getTextComponent(event);      try          {       int offs = Utilities.getRowEnd(t, t.getCaretPosition());              if (offs > -1)              {                Caret c = t.getCaret();                c.setDot(offs);                    c.setMagicCaretPosition(t.modelToView(offs).getLocation());                  }     }                catch (BadLocationException ble)                  {       // Nothing to do here              }          }