code: public boolean canFinish() {
          // Default implementation is to check if all pages are complete.
          for (int i = 0; i < pages.size(); i++) {
              if (!((WizardPage)pages.get(i)).isPageComplete())
                  return false;
          }
          return true;
      }
docs: Returns true if all the pages of this wizard have been completed.