code: public void updateButtons() {
  		AbstractButton cancelButton = wizard.getCancelButton();
  		if (cancelButton != null) {
  			cancelButton.setEnabled(currentPage.isCancelAllowed());
  		}
  		AbstractButton previousButton = wizard.getPreviousButton();
  		if (previousButton != null) {
  			previousButton.setEnabled(currentPage.isPreviousAllowed() && !pageHistory.isEmpty());
  		}
  		AbstractButton nextButton = wizard.getNextButton();
  		if (nextButton != null) {
  			nextButton.setEnabled(currentPage.isNextAllowed() && (currentPage.getNextPage() != null));
  		}
  		AbstractButton finishButton = wizard.getFinishButton();
  		if (finishButton != null) {
  			finishButton.setEnabled(currentPage.isFinishAllowed());
  		}
  	}
docs: Enables/disables the "cancel", "next", "previous", and "finish" buttons of the current page based on the current
  state of pages and the wizard.