Package uk.ac.man.cs.mig.util.wizard

Examples of uk.ac.man.cs.mig.util.wizard.Wizard


    p.setLayout(new BorderLayout());

    p.add(new JTextArea(10, 30));

    Wizard w = new Wizard(null, "My Wizard!");

    WizardPage [] wpa = new WizardPage [] {new WizardPage1(w), new WizardPage("Page 1"), new WizardPage("Page 2"), p};

    w.setPages(wpa);
    //, "Back", "Forward", "Submit", "Stop");

    w.addWizardListener(new WizardEventListener()
    {
      public void cancelPressed(WizardEvent e)
      {
        System.out.println("Cancel pressed");
      }

      public void finishPressed(WizardEvent e)
      {
        System.out.println("Finish pressed");
      }

      public void nextPressed(WizardEvent e)
      {
        System.out.println("Next pressed");
      }

      public void pageChanged(WizardEvent e)
      {
        System.out.println("Page changed");
      }

      public void prevPressed(WizardEvent e)
      {
        System.out.println("Prev Pressed");

        if(e.getSource().getCurrentPage().getName().equals("My Page!"))
        {

        };
      }
    });
    try
    {
    //  UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");

    //  SwingUtilities.updateComponentTreeUI(SwingUtilities.getRoot(w));

    }
    catch(Exception e)
    {
      // Very lazy!!

      e.printStackTrace();
    }

    w.showWizard();
  }
View Full Code Here


    this.tab = tab;
    this.putValue(AbstractAction.SHORT_DESCRIPTION, "Export To Image");
  }

  private void createWizard() {
    wizard = new Wizard("Export Image");
    hierarchyPage = new SpecifyHierarchyPage(tab);
    formatPage = new SelectFormatPage();
    fileNamePage = new SpecifyFileNamePage();
    wizard.setPages(new WizardPage[]{hierarchyPage, formatPage, fileNamePage});
  }
View Full Code Here

TOP

Related Classes of uk.ac.man.cs.mig.util.wizard.Wizard

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.