1   package org.wcb.gui.forms.wizard;
2   
3   import org.wcb.gui.component.JXTitlePanel;
4   import org.wcb.gui.forms.CSVDataImportSelectForm;
5   import org.jdesktop.swingx.border.DropShadowBorder;
6   
7   import javax.swing.border.Border;
8   import javax.swing.border.CompoundBorder;
9   import java.awt.*;
10  
11  /**
12   * <small>
13   * <p/>
14   * Copyright (C)  2006  wbogaardt.
15   * This library is free software; you can redistribute it and/or
16   * modify it under the terms of the GNU Lesser General Public
17   * License as published by the Free Software Foundation; either
18   * version 2.1 of the License, or (at your option) any later version.
19   * <p/>
20   * This library is distributed in the hope that it will be useful,
21   * but WITHOUT ANY WARRANTY; without even the implied warranty of
22   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
23   * Lesser General Public License for more details.
24   * <p/>
25   * You should have received a copy of the GNU Lesser General Public
26   * License along with this library; if not, write to the Free Software
27   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
28   * <p/>
29   * $File:  $ <br>
30   * $Change:  $ submitted by $Author: wbogaardt $ at $DateTime: Oct 26, 2006 2:43:12 PM $ <br>
31   * </small>
32   *
33   * @author wbogaardt
34   *         Wizard step 2 of import wizard.
35   */
36  
37  public class Step2ofImportWizard extends JXTitlePanel {
38  
39      private CSVDataImportSelectForm form;
40  
41      public Step2ofImportWizard() {
42          super("Step 2 - Select Fields to import", new Color(0x3779ff));
43          Border shadow = new DropShadowBorder(Color.BLACK, 2, 5, .3f, 15, true, true, true, true);
44          setBorder(new CompoundBorder(shadow, getBorder()));
45          initComponents();
46      }
47  
48      /** This method is called from within the constructor to
49       * initialize the form.
50       * WARNING: Do NOT modify this code. The content of this method is
51       * always regenerated by the Form Editor.
52       */
53      private void initComponents() {
54          form = new CSVDataImportSelectForm();
55          setLayout(new BorderLayout());
56  
57          add(form, BorderLayout.CENTER);
58      }
59  
60      public CSVDataImportSelectForm getForm() {
61          return form;
62      }
63  }