void resetButtonsToPanelRules() {
        //  Reset the buttons to support the original panel rules,
        //  including whether the next or back buttons are enabled or
        //  disabled, or if the panel is finishable.
		
        WizardModel model = wizard.getModel();
        WizardPanelDescriptor descriptor = model.getCurrentPanelDescriptor();
        if(descriptor == null) 
        	return;
        
        //  If the panel in question has another panel behind it, enable
        //  the back button. Otherwise, disable it.
        if (descriptor.getBackPanelDescriptor() != null)
            wizard.setBackButtonEnabled(true);
        else
        	wizard.setBackButtonEnabled(false);

        //  If the panel in question has one or more panels in front of it,
        //  enable the next button. Otherwise, disable it.
        if (descriptor.getNextPanelDescriptor() != null)
        	wizard.setNextButtonEnabled(true);
        else
        	wizard.setNextButtonEnabled(false);
 
        //  If the panel in question is the last panel in the series, change
        //  the Next button to Finish. Otherwise, set the text back to Next.
        if (descriptor.getNextPanelDescriptor() != null && descriptor.getNextPanelDescriptor().equals(WizardPanelDescriptor.FINISH_IDENTIFIER)) {
        	wizard.setNextButtonText(Wizard.FINISH_TEXT);
        } else {
        	wizard.setNextButtonText(Wizard.NEXT_TEXT);
        }        
    }