class OkCancelDialog extends Window {

    public void setCancelCaption(String cancelCaption) {
        if (cancelButton != null) {
            cancelButton.setCaption(requireNonNull(cancelCaption, "cancelCaption must not be null"));
        } else {
            throw new IllegalStateException("Dialog does not have a cancel button");
        }
    }

    protected  OkCancelDialog(String caption, Handler okHandler, Handler cancelHandler,
            ButtonOption buttonOption, Component... contentComponents);
    @Deprecated public  OkCancelDialog(String caption);
    @Deprecated public  OkCancelDialog(String caption, Handler okHandler);
    @Deprecated public  OkCancelDialog(String caption, Handler okHandler, ButtonOption buttonOption);
    @Deprecated public  OkCancelDialog(String caption, Component content, Handler okHandler, ButtonOption buttonOption);

}