WizardPage page;
   private void jbInit() throws Exception  {      setIconImage(My5250.tnicon.getImage());      // create ourselves a new wizard      wizard = new Wizard();      // create the event handler as being this module      wizard.addWizardListener(this);      // add our wizard to the frame      this.getContentPane().add(wizard);      WizardPage page;      // create the first wizard page      page = new WizardPage(WizardPage.NEXT |                       WizardPage.FINISH |                       WizardPage.CANCEL |                       WizardPage.HELP);      page.setName(LangTool.getString("spool.titlePage1"));      setTitle(page.getName());      // get the next button so we can set it enabled or disabled depending      // on output type.      nextButton = page.getNextButton();      page.getContentPane().add(pageOne(), BorderLayout.CENTER);      wizard.add(page);      page = new WizardPage(WizardPage.PREVIOUS |                       WizardPage.FINISH |                       WizardPage.CANCEL |                       WizardPage.HELP);      page.setName(LangTool.getString("spool.titlePage2"));      page.getContentPane().add(pageTwo(), BorderLayout.CENTER);      wizard.add(page);      pack();      //Center the window      Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();      Dimension frameSize = getSize();      if (frameSize.height > screenSize.height)         frameSize.height = screenSize.height;      if (frameSize.width > screenSize.width)         frameSize.width = screenSize.width;      setLocation((screenSize.width - frameSize.width) / 2,                     (screenSize.height - frameSize.height) / 2);   }