KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > db > explorer > dlg > GrabTableProgressPanel


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * 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.db.explorer.dlg;
21
22 import java.awt.BorderLayout JavaDoc;
23 import javax.swing.JComponent JavaDoc;
24 import org.openide.util.NbBundle;
25
26 /**
27  *
28  * @author Andrei Badea
29  */

30 public class GrabTableProgressPanel extends javax.swing.JPanel JavaDoc {
31
32     public GrabTableProgressPanel() {
33         initComponents();
34     }
35
36     public void setProgressComponent(JComponent JavaDoc component) {
37         progressPlaceHolderPanel.removeAll();
38         progressPlaceHolderPanel.add(component, BorderLayout.CENTER);
39     }
40
41     /** This method is called from within the constructor to
42      * initialize the form.
43      * WARNING: Do NOT modify this code. The content of this method is
44      * always regenerated by the Form Editor.
45      */

46     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
47
private void initComponents() {
48         messageLabel = new javax.swing.JLabel JavaDoc();
49         progressPlaceHolderPanel = new javax.swing.JPanel JavaDoc();
50
51         messageLabel.setText(NbBundle.getBundle("org.netbeans.modules.db.resources.Bundle").getString("GrabTableProgressDialogMessage"));
52         messageLabel.getAccessibleContext().setAccessibleName(NbBundle.getBundle("org.netbeans.modules.db.resources.Bundle").getString("GrabTableProgressDialogMessage"));
53         messageLabel.getAccessibleContext().setAccessibleDescription(NbBundle.getBundle("org.netbeans.modules.db.resources.Bundle").getString("GrabTableProgressDialogMessage"));
54
55         progressPlaceHolderPanel.setLayout(new java.awt.BorderLayout JavaDoc());
56
57         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
58         this.setLayout(layout);
59         layout.setHorizontalGroup(
60             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
61             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
62                 .addContainerGap()
63                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
64                     .add(messageLabel)
65                     .add(progressPlaceHolderPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 376, Short.MAX_VALUE))
66                 .addContainerGap())
67         );
68         layout.setVerticalGroup(
69             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
70             .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
71                 .addContainerGap()
72                 .add(messageLabel)
73                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
74                 .add(progressPlaceHolderPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
75                 .addContainerGap(18, Short.MAX_VALUE))
76         );
77     }
78     // </editor-fold>//GEN-END:initComponents
79

80     
81     // Variables declaration - do not modify//GEN-BEGIN:variables
82
public javax.swing.JLabel JavaDoc messageLabel;
83     public javax.swing.JPanel JavaDoc progressPlaceHolderPanel;
84     // End of variables declaration//GEN-END:variables
85

86 }
87
Popular Tags