CancelButton cancelButton = (CancelButton) getChildItem(ButtonPanel.CANCEL_BUTTON); removeChildItem(ButtonPanel.CANCEL_BUTTON); destroyChildItem(cancelButton);
CancelButton cancelButton = (CancelButton) getChild(ButtonPanel.CANCEL_BUTTON); removeChild(ButtonPanel.CANCEL_BUTTON); destroyChild(cancelButton);
    public void finalizz() throws Exception {        CloseButton closeButton = (CloseButton) getChildItem(ButtonPanel.CLOSE_BUTTON);        removeChildItem(ButtonPanel.CLOSE_BUTTON);        destroyChildItem(closeButton);        HelpButton helpButton = (HelpButton) getChildItem(ButtonPanel.HELP_BUTTON);        removeChildItem(ButtonPanel.HELP_BUTTON);        destroyChildItem(helpButton);        ResetButton resetButton = (ResetButton) getChildItem(ButtonPanel.RESET_BUTTON);        removeChildItem(ButtonPanel.RESET_BUTTON);        destroyChildItem(resetButton);        ApplyButton applyButton = (ApplyButton) getChildItem(ButtonPanel.APPLY_BUTTON);        removeChildItem(ButtonPanel.APPLY_BUTTON);        destroyChildItem(applyButton);        NoButton noButton = (NoButton) getChildItem(ButtonPanel.NO_BUTTON);        removeChildItem(ButtonPanel.NO_BUTTON);        destroyChildItem(noButton);        YesButton yesButton = (YesButton) getChildItem(ButtonPanel.YES_BUTTON);        removeChildItem(ButtonPanel.YES_BUTTON);        destroyChildItem(yesButton);        CancelButton cancelButton = (CancelButton) getChildItem(ButtonPanel.CANCEL_BUTTON);        removeChildItem(ButtonPanel.CANCEL_BUTTON);        destroyChildItem(cancelButton);        OkButton okButton = (OkButton) getChildItem(ButtonPanel.OK_BUTTON);        removeChildItem(ButtonPanel.OK_BUTTON);        destroyChildItem(okButton);        super.finalizz();    }