class OkCancelDialog extends Window {

    @SuppressFBWarnings(value = "RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE", justification = "yeah, we know...")
    @Override
    public void setContent(@CheckForNull Component content) {
        // This method is invoked by superclass constructors. In this case the superclass'
        // implementation has to be used. Once initialization is finished, we implement a different
        // behavior (as described in the JavaDoc).
        //
        // This is bad. Thou shalt not call non-private methods in thy constructor!
        if (mainArea == null) {
            super.setContent(content);
        } else {
            mainArea.removeAllComponents();
            mainArea.addComponent(content);
        }
    }

    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);

}