// create the JWizardPane
JWizardPane wizardPane = new JWizardPane();
// configure the side image, banner image, logo icon, logo text
wizardPane.setSideImage(sideImage);
wizardPane.setBannerImage(bannerImage);
wizardPane.setLogoIcon(logoIcon);
wizardPane.setLogoText(logoText);
// configure the control button
wizardPane.getControlButton(JWizardPane.FINISH_CONTROL).setVisible(false);
wizardPane.getControlButton(JWizardPane.HELP_CONTROL).setVisible(false);
// add the wizard pane
wizardPane.addPage(createPanel1()); // welcome page
wizardPane.addPage("header", "description", createPanel2()); // interior page
wizardPane.addPage("header", "description", new JButton("text")); // add a JButton
wizardPane.addPage("header", "description", new JFileChooser()); // add a JFileChooser
// add the wizard listener
wizardPane.addWizardListener(createWizardListener());
// add the change listener
wizardPane.addChangeListener(createChangeListener());
|