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