t.repaint();
    public void actionPerformed(ActionEvent event)    {      JTextComponent t = getTextComponent(event);      if (t != null)        {          try            {              t.getDocument().insertString(t.getCaret().getDot(), event.getActionCommand(), null);              t.getCaret().setDot(Math.min(t.getCaret().getDot() + 1,                                           t.getDocument().getEndPosition().getOffset()));              t.repaint();            }          catch (BadLocationException be)            {              // FIXME: we're not authorized to throw this.. swallow it?            }        }    }