01: /**
02: * Created on Dec 2, 2004
03: *
04: * @author karthikeyanr
05: *
06: */package example;
07:
08: import java.awt.Frame;
09:
10: import javax.swing.JOptionPane;
11:
12: import wizard.ui.AbstractWizard;
13:
14: public class MyWizard extends AbstractWizard {
15:
16: private boolean shouldSucceed = true;
17:
18: public MyWizard(Frame owner, String title) {
19: super (owner, title);
20: }
21:
22: public void setShouldSucceed(boolean shouldSucceed) {
23: this .shouldSucceed = shouldSucceed;
24: }
25:
26: public boolean wizardComplete() {
27: JOptionPane.showMessageDialog(this , "Wizard complete");
28: return shouldSucceed;
29: }
30:
31: }
|