KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > subversion > ui > browser > ControlPanel


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 package org.netbeans.modules.subversion.ui.browser;
20
21 /**
22  *
23  * @author tomas
24  */

25 public class ControlPanel extends javax.swing.JPanel JavaDoc {
26     
27     /** Creates new form ButtonPanel */
28     public ControlPanel() {
29         initComponents();
30     }
31     
32     /** This method is called from within the constructor to
33      * initialize the form.
34      * WARNING: Do NOT modify this code. The content of this method is
35      * always regenerated by the Form Editor.
36      */

37     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
38
private void initComponents() {
39         java.awt.GridBagConstraints JavaDoc gridBagConstraints;
40
41         jPanel1 = new javax.swing.JPanel JavaDoc();
42
43         org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
44         jPanel1.setLayout(jPanel1Layout);
45         jPanel1Layout.setHorizontalGroup(
46             jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
47             .add(0, 100, Short.MAX_VALUE)
48         );
49         jPanel1Layout.setVerticalGroup(
50             jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
51             .add(0, 100, Short.MAX_VALUE)
52         );
53
54         setLayout(new java.awt.GridBagLayout JavaDoc());
55
56         warningLabel.setIcon(new javax.swing.ImageIcon JavaDoc(getClass().getResource("/org/netbeans/modules/subversion/ui/resources/warning.png")));
57         warningLabel.setText("jLabel1");
58         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
59         gridBagConstraints.gridx = 0;
60         gridBagConstraints.gridy = 0;
61         gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
62         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
63         gridBagConstraints.weightx = 1.0;
64         add(warningLabel, gridBagConstraints);
65
66         buttonPanel.setLayout(new java.awt.FlowLayout JavaDoc(java.awt.FlowLayout.RIGHT));
67         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
68         gridBagConstraints.gridx = 1;
69         gridBagConstraints.gridy = 0;
70         gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
71         gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
72         gridBagConstraints.weightx = 0.1;
73         add(buttonPanel, gridBagConstraints);
74     }// </editor-fold>//GEN-END:initComponents
75

76     
77     // Variables declaration - do not modify//GEN-BEGIN:variables
78
final javax.swing.JPanel JavaDoc buttonPanel = new javax.swing.JPanel JavaDoc();
79     private javax.swing.JPanel JavaDoc jPanel1;
80     final javax.swing.JLabel JavaDoc warningLabel = new javax.swing.JLabel JavaDoc();
81     // End of variables declaration//GEN-END:variables
82

83 }
84
Popular Tags