1   package org.wcb.gui.dialog;
2   
3   import org.wcb.gui.forms.wizard.FAA8710Wizard;
4   import org.wcb.gui.util.UIHelper;
5   
6   import javax.swing.*;
7   import java.awt.*;
8   
9   /**
10   * <small>
11   * <p/>
12   * Copyright (c)  2006  wbogaardt.
13   * This library is free software; you can redistribute it and/or
14   * modify it under the terms of the GNU Lesser General Public
15   * License as published by the Free Software Foundation; either
16   * version 2.1 of the License, or (at your option) any later version.
17   *
18   * This library is distributed in the hope that it will be useful,
19   * but WITHOUT ANY WARRANTY; without even the implied warranty of
20   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21   * Lesser General Public License for more details.
22   *
23   * You should have received a copy of the GNU Lesser General Public
24   * License along with this library; if not, write to the Free Software
25   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
26   * <p/>
27   * $File:  $ <br>
28   * $Change:  $ submitted by $Author: wbogaardt $ at $DateTime: Sep 18, 2006 9:56:58 AM $ <br>
29   * </small>
30   *
31   * @author wbogaardt
32   *       This pops up the dialog box for the PDF Wizard.
33   */
34  public class PdfWizardDialog extends JDialog  {
35  
36      public PdfWizardDialog() {
37          setTitle("Create 8710");
38          setModal(true);
39          setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
40          initComponents();
41      }
42  
43      /**
44       * Init the componets in the dialog.
45       */
46      private void initComponents() {
47          getContentPane().setLayout(new BorderLayout());
48          getContentPane().add(new FAA8710Wizard(), BorderLayout.CENTER);
49          pack();
50          UIHelper.centerDialogToScreen(this);
51      }
52  }