dialog.setFrame((SFrame) null);
    public SDialog popDialog() {        int count = getComponentCount();        if (count <= 1)            throw new IllegalStateException("there's no dialog left!");        SDialog dialog = (SDialog) getComponent(count - 1);        super.remove(dialog);        logger.debug("popDialog: " + count);        dialog.setFrame((SFrame) null);        reload(ReloadManager.RELOAD_CODE);        return dialog;    }