Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: javatools/swing/TestWizard.java


1   /*
2    * TestWizard.java
3    *
4    * Created on 10 gennaio 2002, 11.48
5       Javatools (modified version) - Some useful general classes.
6       Copyright (C) 2002-2003  Chris Bitmead (original) Antonio Petrelli (modified)
7   
8       This program is free software; you can redistribute it and/or modify
9       it under the terms of the GNU General Public License as published by
10      the Free Software Foundation; either version 2 of the License, or
11      (at your option) any later version.
12  
13      This program is distributed in the hope that it will be useful,
14      but WITHOUT ANY WARRANTY; without even the implied warranty of
15      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16      GNU General Public License for more details.
17  
18      You should have received a copy of the GNU General Public License
19      along with this program; if not, write to the Free Software
20      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21  
22      Contact me at: brenmcguire@users.sourceforge.net
23   */
24  
25  package javatools.swing;
26  
27  import java.io.FileNotFoundException;
28  import java.util.Properties;
29  
30  /**
31   * It is a test wizard...
32   * @author Antonio Petrelli
33   * @version 0.0.1
34   */
35  public class TestWizard extends javatools.swing.AbstractWizard {
36  
37      /** Creates new TestWizard */
38      public TestWizard() {
39          wizPanels = new InputPanel[3];
40          wizPanels[0] = new PresentationPanel();
41          wizPanels[1] = new PresentationPanel();
42          wizPanels[2] = new PresentationPanel();
43          setValue(0, "Salute a tutti");
44          setValue(1, "Benvenuti al test");
45          setValue(2, "Questa è l'ultima schermata");
46          wizPanels[0].setDescription("Presentation");
47          wizPanels[1].setDescription("Welcome");
48          wizPanels[2].setDescription("Last screen");
49          try {
50              this.setBackgroundFile("C:/Programmi/Microsoft Office/Office/Bitmaps/Dbwiz/Casainv.gif");
51          }
52          catch (WizardException e) {
53              System.out.println("Acc il file non esiste!");
54          }
55          initPanels();
56          setEnabledFinishButton(false);
57      }
58      
59      /** I think it's a main function.
60       * @param args Ignored.
61       */    
62      public static void main (String args[]) {
63          TestWizard test;
64          
65          test = new TestWizard();
66          test.show();
67      }
68  
69      /** Executes something.
70       * @throws WizardException If something goes wrong.
71       */    
72      public void execute() throws WizardException {
73          Properties data;
74          String outString;
75          
76          data = buildProperties();
77          outString = data.getProperty("PresentationText");
78          System.out.println(outString);
79  
80      }
81      
82  }