Include OK and Cancel buttons in this
OverlayDecorator
.
This will automatically add the OK and Cancel actions to the internal list of actions, so there is no need to call {@link #setActions(Action)}, unless other actions are to be added. Also, keybindings for OK and Cancel are automatically installed, so there is no need to call {@link #installOkAndCancelShortCuts(Action,Action) installOkAndCancelShortCuts}.
The property {@link #setOkAsDefault(boolean) okAsDefault} will also be set totrue
. If this is not the intended behavior, call setOkAsDefault(false)
.