}
    public void actionPerformed(ActionEvent event)    {      JTextComponent t = getTextComponent(event);      Caret c = t.getCaret();      try        {          int offs1 = Utilities.getRowStart(t, c.getDot());          int offs2 = Utilities.getRowEnd(t, c.getDot());          c.setDot(offs2);          c.moveDot(offs1);                    c.setMagicCaretPosition(t.modelToView(offs2).getLocation());        }      catch(BadLocationException ble)         {          // Can't happen.        }    }