KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > subversion > ui > relocate > RelocatePanel


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-2007 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 /*
20  * RelocatePanel.java
21  *
22  * Created on 03 March 2007, 11:53
23  */

24
25 package org.netbeans.modules.subversion.ui.relocate;
26
27 import javax.swing.JTextField JavaDoc;
28
29 /**
30  *
31  * @author Peter Pis
32  */

33 public class RelocatePanel extends javax.swing.JPanel JavaDoc {
34     
35     /** Creates new form RelocatePanel */
36     public RelocatePanel() {
37         initComponents();
38     }
39     
40     /** This method is called from within the constructor to
41      * initialize the form.
42      * WARNING: Do NOT modify this code. The content of this method is
43      * always regenerated by the Form Editor.
44      */

45     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
46
private void initComponents() {
47
48         jLabel1 = new javax.swing.JLabel JavaDoc();
49         tfWorkingCopy = new javax.swing.JTextField JavaDoc();
50         jLabel2 = new javax.swing.JLabel JavaDoc();
51         tfCurrentURL = new javax.swing.JTextField JavaDoc();
52         jLabel3 = new javax.swing.JLabel JavaDoc();
53         tfNewURL = new javax.swing.JTextField JavaDoc();
54
55         org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(RelocatePanel.class, "RelocatePanel.jLabel1.text")); // NOI18N
56

57         tfWorkingCopy.setEditable(false);
58
59         org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(RelocatePanel.class, "RelocatePanel.jLabel2.text")); // NOI18N
60

61         tfCurrentURL.setEditable(false);
62
63         org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(RelocatePanel.class, "RelocatePanel.jLabel3.text")); // NOI18N
64

65         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
66         this.setLayout(layout);
67         layout.setHorizontalGroup(
68             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
69             .add(layout.createSequentialGroup()
70                 .addContainerGap()
71                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
72                     .add(jLabel1)
73                     .add(jLabel2)
74                     .add(jLabel3))
75                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
76                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
77                     .add(tfCurrentURL, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
78                     .add(tfWorkingCopy, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
79                     .add(tfNewURL, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE))
80                 .addContainerGap())
81         );
82         layout.setVerticalGroup(
83             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
84             .add(layout.createSequentialGroup()
85                 .addContainerGap()
86                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
87                     .add(jLabel1)
88                     .add(tfWorkingCopy, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
89                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
90                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
91                     .add(jLabel2)
92                     .add(tfCurrentURL, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
93                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
94                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
95                     .add(jLabel3)
96                     .add(tfNewURL, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
97                 .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
98         );
99     }// </editor-fold>//GEN-END:initComponents
100

101     
102     // Variables declaration - do not modify//GEN-BEGIN:variables
103
private javax.swing.JLabel JavaDoc jLabel1;
104     private javax.swing.JLabel JavaDoc jLabel2;
105     private javax.swing.JLabel JavaDoc jLabel3;
106     private javax.swing.JTextField JavaDoc tfCurrentURL;
107     private javax.swing.JTextField JavaDoc tfNewURL;
108     private javax.swing.JTextField JavaDoc tfWorkingCopy;
109     // End of variables declaration//GEN-END:variables
110

111     public JTextField JavaDoc getWorkingCopy() {
112         return tfWorkingCopy;
113     }
114     
115     public JTextField JavaDoc getCurrentURL() {
116         return tfCurrentURL;
117     }
118     
119     public JTextField JavaDoc getNewURL() {
120         return tfNewURL;
121     }
122 }
123
Popular Tags