KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > subversion > ui > repository > RepositoryPanel


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.repository;
21
22 /**
23  *
24  * @author Petr Kuzel
25  */

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

38     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
39
private void initComponents() {
40
41         setMinimumSize(new java.awt.Dimension JavaDoc(480, 160));
42         java.util.ResourceBundle JavaDoc bundle = java.util.ResourceBundle.getBundle("org/netbeans/modules/subversion/ui/repository/Bundle"); // NOI18N
43
setName(bundle.getString("BK2018")); // NOI18N
44
setVerifyInputWhenFocusTarget(false);
45
46         titleLabel.setText(bundle.getString("BK0001")); // NOI18N
47

48         jLabel2.setLabelFor(urlComboBox);
49         org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "BK0002")); // NOI18N
50

51         urlComboBox.setEditable(true);
52
53         org.openide.awt.Mnemonics.setLocalizedText(proxySettingsButton, org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "BK0006")); // NOI18N
54
proxySettingsButton.setToolTipText(org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "ACSD_ProxyDialog")); // NOI18N
55

56         tipLabel.setText(" ");
57         tipLabel.setMaximumSize(new java.awt.Dimension JavaDoc(32767, 32767));
58
59         removeButton.setText("Remove from History");
60
61         userPasswordField.setMinimumSize(new java.awt.Dimension JavaDoc(11, 22));
62         userPasswordField.setPreferredSize(new java.awt.Dimension JavaDoc(11, 22));
63
64         passwordLabel.setLabelFor(userPasswordField);
65         org.openide.awt.Mnemonics.setLocalizedText(passwordLabel, org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "BK0004")); // NOI18N
66
passwordLabel.setToolTipText(org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "TT_Password")); // NOI18N
67

68         userLabel.setLabelFor(userTextField);
69         org.openide.awt.Mnemonics.setLocalizedText(userLabel, org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "BK0003")); // NOI18N
70
userLabel.setToolTipText(org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "TT_UserName")); // NOI18N
71

72         userTextField.setMinimumSize(new java.awt.Dimension JavaDoc(11, 22));
73         userTextField.setPreferredSize(new java.awt.Dimension JavaDoc(11, 22));
74
75         leaveBlankLabel.setText(org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "BK0005")); // NOI18N
76

77         tunnelLabel.setText("Use External Tunnel");
78
79         tunnelCommandLabel.setText("Tunnel Command");
80
81         tunnelHelpLabel.setText(org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "TT_svn_xxx")); // NOI18N
82

83         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
84         this.setLayout(layout);
85         layout.setHorizontalGroup(
86             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
87             .add(titleLabel)
88             .add(layout.createSequentialGroup()
89                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
90                     .add(jLabel2)
91                     .add(userLabel)
92                     .add(passwordLabel)
93                     .add(tunnelCommandLabel))
94                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
95                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
96                     .add(tipLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 516, Short.MAX_VALUE)
97                     .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
98                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
99                         .add(urlComboBox, 0, 344, Short.MAX_VALUE)
100                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
101                         .add(removeButton))
102                     .add(layout.createSequentialGroup()
103                         .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
104                             .add(org.jdesktop.layout.GroupLayout.LEADING, userPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
105                             .add(org.jdesktop.layout.GroupLayout.LEADING, userTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 145, Short.MAX_VALUE))
106                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
107                         .add(leaveBlankLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 347, Short.MAX_VALUE)
108                         .addContainerGap())
109                     .add(tunnelCommandTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 516, Short.MAX_VALUE)))
110             .add(layout.createSequentialGroup()
111                 .add(proxySettingsButton)
112                 .addContainerGap())
113             .add(layout.createSequentialGroup()
114                 .add(tunnelLabel)
115                 .addContainerGap())
116             .add(tunnelHelpLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 639, Short.MAX_VALUE)
117         );
118         layout.setVerticalGroup(
119             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
120             .add(layout.createSequentialGroup()
121                 .add(titleLabel)
122                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
123                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
124                     .add(jLabel2)
125                     .add(removeButton)
126                     .add(urlComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 22, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
127                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
128                 .add(tipLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
129                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
130                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
131                     .add(userLabel)
132                     .add(userTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 22, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
133                     .add(leaveBlankLabel))
134                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
135                     .add(layout.createSequentialGroup()
136                         .add(2, 2, 2)
137                         .add(userPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 22, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
138                     .add(layout.createSequentialGroup()
139                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
140                         .add(passwordLabel)))
141                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
142                 .add(proxySettingsButton)
143                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
144                 .add(tunnelLabel)
145                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
146                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
147                     .add(tunnelCommandLabel)
148                     .add(tunnelCommandTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
149                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
150                 .add(tunnelHelpLabel)
151                 .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
152         );
153
154         titleLabel.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "ACSD_RepositoryPanel_Title")); // NOI18N
155
titleLabel.getAccessibleContext().setAccessibleParent(this);
156         jLabel2.getAccessibleContext().setAccessibleParent(this);
157         urlComboBox.getAccessibleContext().setAccessibleParent(this);
158         proxySettingsButton.getAccessibleContext().setAccessibleParent(this);
159         userPasswordField.getAccessibleContext().setAccessibleParent(this);
160         passwordLabel.getAccessibleContext().setAccessibleParent(this);
161         userLabel.getAccessibleContext().setAccessibleParent(this);
162         userTextField.getAccessibleContext().setAccessibleParent(this);
163         leaveBlankLabel.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "ACSD_InfoLabel")); // NOI18N
164
leaveBlankLabel.getAccessibleContext().setAccessibleParent(this);
165
166         getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "ACSD_RepositoryPanel")); // NOI18N
167
}// </editor-fold>//GEN-END:initComponents
168

169     
170     // Variables declaration - do not modify//GEN-BEGIN:variables
171
private final javax.swing.JLabel JavaDoc jLabel2 = new javax.swing.JLabel JavaDoc();
172     final javax.swing.JLabel JavaDoc leaveBlankLabel = new javax.swing.JLabel JavaDoc();
173     final javax.swing.JLabel JavaDoc passwordLabel = new javax.swing.JLabel JavaDoc();
174     final javax.swing.JButton JavaDoc proxySettingsButton = new javax.swing.JButton JavaDoc();
175     final javax.swing.JButton JavaDoc removeButton = new javax.swing.JButton JavaDoc();
176     final javax.swing.JLabel JavaDoc tipLabel = new javax.swing.JLabel JavaDoc();
177     final javax.swing.JLabel JavaDoc titleLabel = new javax.swing.JLabel JavaDoc();
178     final javax.swing.JLabel JavaDoc tunnelCommandLabel = new javax.swing.JLabel JavaDoc();
179     final javax.swing.JTextField JavaDoc tunnelCommandTextField = new javax.swing.JTextField JavaDoc();
180     final javax.swing.JLabel JavaDoc tunnelHelpLabel = new javax.swing.JLabel JavaDoc();
181     final javax.swing.JLabel JavaDoc tunnelLabel = new javax.swing.JLabel JavaDoc();
182     final javax.swing.JComboBox JavaDoc urlComboBox = new javax.swing.JComboBox JavaDoc();
183     final javax.swing.JLabel JavaDoc userLabel = new javax.swing.JLabel JavaDoc();
184     final javax.swing.JPasswordField JavaDoc userPasswordField = new javax.swing.JPasswordField JavaDoc();
185     final javax.swing.JTextField JavaDoc userTextField = new javax.swing.JTextField JavaDoc();
186     // End of variables declaration//GEN-END:variables
187

188 }
189
Popular Tags