01: /*
02: * The contents of this file are subject to the terms of the Common Development
03: * and Distribution License (the License). You may not use this file except in
04: * compliance with the License.
05: *
06: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
07: * or http://www.netbeans.org/cddl.txt.
08: *
09: * When distributing Covered Code, include this CDDL Header Notice in each file
10: * and include the License file at http://www.netbeans.org/cddl.txt.
11: * If applicable, add the following below the CDDL Header, with the fields
12: * enclosed by brackets [] replaced by your own identifying information:
13: * "Portions Copyrighted [year] [name of copyright owner]"
14: *
15: * The Original Software is NetBeans. The Initial Developer of the Original
16: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17: * Microsystems, Inc. All Rights Reserved.
18: */
19:
20: package org.netbeans.modules.project.uiapi;
21:
22: import javax.swing.JComponent;
23:
24: /**
25: * Simple panel to show progress of project data saving operation
26: *
27: * @author Milan Kubec
28: */
29: public class SavingProjectDataPanel extends javax.swing.JPanel {
30:
31: JComponent component;
32:
33: /** Creates new form SavingProjectDataPanel */
34: public SavingProjectDataPanel(JComponent component) {
35: this .component = component;
36: initComponents();
37: }
38:
39: /** This method is called from within the constructor to
40: * initialize the form.
41: * WARNING: Do NOT modify this code. The content of this method is
42: * always regenerated by the Form Editor.
43: */
44: // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
45: private void initComponents() {
46: java.awt.GridBagConstraints gridBagConstraints;
47:
48: savingDataLabel = new javax.swing.JLabel();
49:
50: setPreferredSize(new java.awt.Dimension(450, 50));
51: setLayout(new java.awt.GridBagLayout());
52:
53: savingDataLabel.setText(org.openide.util.NbBundle.getMessage(
54: SavingProjectDataPanel.class, "LBL_savingDataLabel")); // NOI18N
55: gridBagConstraints = new java.awt.GridBagConstraints();
56: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
57: gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
58: gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
59: gridBagConstraints.weightx = 1.0;
60: gridBagConstraints.insets = new java.awt.Insets(8, 8, 0, 8);
61: add(savingDataLabel, gridBagConstraints);
62:
63: gridBagConstraints = new java.awt.GridBagConstraints();
64: gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
65: gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
66: gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
67: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
68: gridBagConstraints.insets = new java.awt.Insets(6, 8, 8, 8);
69: gridBagConstraints.weightx = 1.0;
70: add(component, gridBagConstraints);
71: }// </editor-fold>//GEN-END:initComponents
72:
73: // Variables declaration - do not modify//GEN-BEGIN:variables
74: private javax.swing.JLabel savingDataLabel;
75: // End of variables declaration//GEN-END:variables
76:
77: }
|