public void actionPerformed(ActionEvent evt, JTextComponent target) {
   UndoAction ua = (UndoAction) SystemAction.get(UndoAction.class);
   if (ua != null && ua.isEnabled()) {
     ua.actionPerformed(evt);
   }
 }