KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > subversion > ui > copy > SwitchToPanel


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.subversion.ui.copy;
21
22 import org.netbeans.modules.subversion.ui.wizards.*;
23
24 /**
25  *
26  * @author Petr Kuzel
27  */

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

40     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
41
private void initComponents() {
42
43         jLabel5 = new javax.swing.JLabel JavaDoc();
44         jLabel6 = new javax.swing.JLabel JavaDoc();
45
46         setName(org.openide.util.NbBundle.getMessage(SwitchToPanel.class, "CTL_SwitchPanel_Message")); // NOI18N
47

48         org.openide.awt.Mnemonics.setLocalizedText(urlLabel, org.openide.util.NbBundle.getMessage(SwitchToPanel.class, "CTL_SwitchPanel_Folder")); // NOI18N
49

50         org.openide.awt.Mnemonics.setLocalizedText(browseRepositoryButton, org.openide.util.NbBundle.getMessage(SwitchToPanel.class, "CTL_SwitchPanel_Browse")); // NOI18N
51

52         urlComboBox.setEditable(true);
53
54         jLabel5.setLabelFor(revisionTextField);
55         org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(SwitchToPanel.class, "CTL_SwitchPanel_Revision")); // NOI18N
56

57         org.openide.awt.Mnemonics.setLocalizedText(searchRevisionButton, org.openide.util.NbBundle.getMessage(SwitchToPanel.class, "CTL_SwitchPanel_Search")); // NOI18N
58

59         org.openide.awt.Mnemonics.setLocalizedText(jLabel6, org.openide.util.NbBundle.getMessage(SwitchToPanel.class, "CTL_SwitchPanel_EmptyHint")); // NOI18N
60

61         warningLabel.setIcon(new javax.swing.ImageIcon JavaDoc(getClass().getResource("/org/netbeans/modules/subversion/ui/resources/warning.png")));
62         org.openide.awt.Mnemonics.setLocalizedText(warningLabel, org.openide.util.NbBundle.getMessage(SwitchToPanel.class, "CTL_SwitchPanel_Warning")); // NOI18N
63

64         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
65         this.setLayout(layout);
66         layout.setHorizontalGroup(
67             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
68             .add(layout.createSequentialGroup()
69                 .addContainerGap()
70                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
71                     .add(layout.createSequentialGroup()
72                         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
73                             .add(urlLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
74                             .add(jLabel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 135, Short.MAX_VALUE))
75                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
76                         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
77                             .add(urlComboBox, 0, 450, Short.MAX_VALUE)
78                             .add(layout.createSequentialGroup()
79                                 .add(revisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 93, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
80                                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
81                                 .add(searchRevisionButton))
82                             .add(jLabel6))
83                         .add(10, 10, 10)
84                         .add(browseRepositoryButton))
85                     .add(warningLabel))
86                 .addContainerGap())
87         );
88         layout.setVerticalGroup(
89             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
90             .add(layout.createSequentialGroup()
91                 .addContainerGap()
92                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
93                     .add(browseRepositoryButton)
94                     .add(urlComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
95                     .add(urlLabel))
96                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
97                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
98                     .add(revisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
99                     .add(jLabel5)
100                     .add(searchRevisionButton))
101                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
102                 .add(jLabel6)
103                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
104                 .add(warningLabel)
105                 .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
106         );
107
108         urlLabel.getAccessibleContext().setAccessibleDescription("Repository Folder");
109         browseRepositoryButton.getAccessibleContext().setAccessibleDescription("Browse Repository Fodlers");
110         jLabel5.getAccessibleContext().setAccessibleDescription("Repository Revision");
111         searchRevisionButton.getAccessibleContext().setAccessibleDescription("Search Revisions");
112         jLabel6.getAccessibleContext().setAccessibleDescription("(empty means repository HEAD)");
113         warningLabel.getAccessibleContext().setAccessibleDescription("Warning - there are locally modified files!");
114     }// </editor-fold>//GEN-END:initComponents
115

116     
117     // Variables declaration - do not modify//GEN-BEGIN:variables
118
final javax.swing.JButton JavaDoc browseRepositoryButton = new javax.swing.JButton JavaDoc();
119     private javax.swing.JLabel JavaDoc jLabel5;
120     private javax.swing.JLabel JavaDoc jLabel6;
121     final javax.swing.JTextField JavaDoc revisionTextField = new javax.swing.JTextField JavaDoc();
122     final javax.swing.JButton JavaDoc searchRevisionButton = new javax.swing.JButton JavaDoc();
123     final javax.swing.JComboBox JavaDoc urlComboBox = new javax.swing.JComboBox JavaDoc();
124     final javax.swing.JLabel JavaDoc urlLabel = new javax.swing.JLabel JavaDoc();
125     final javax.swing.JLabel JavaDoc warningLabel = new javax.swing.JLabel JavaDoc();
126     // End of variables declaration//GEN-END:variables
127

128 }
129
Popular Tags