public VRedoButton(SessionShare sshare, ButtonIF vif, String typ) { super(sshare, vif, typ); addFocusListener( new FocusAdapter() { public void focusGained(FocusEvent evt) { Undo.restoreLastUndoMgr(); } }); Undo.addUndoListener(this); }