KickJava   Java API By Example, From Geeks To Geeks.

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


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 MergePanel extends javax.swing.JPanel JavaDoc {
29
30     /** Creates new form WorkdirPanel */
31     public MergePanel() {
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         jLabel1 = new javax.swing.JLabel JavaDoc();
43         jLabel2 = new javax.swing.JLabel JavaDoc();
44
45         typeComboBox.setModel(new javax.swing.DefaultComboBoxModel JavaDoc(new String JavaDoc[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
46         typeComboBox.addActionListener(new java.awt.event.ActionListener JavaDoc() {
47             public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
48                 typeComboBoxActionPerformed(evt);
49             }
50         });
51
52         typeComboBox.getAccessibleContext().setAccessibleDescription("Merge From Repository URL");
53
54         jLabel1.setLabelFor(typeComboBox);
55         org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(MergePanel.class, "CTL_MergePanel_MergeFrom")); // NOI18N
56
jLabel1.getAccessibleContext().setAccessibleDescription("Merge From Repository URL");
57
58         typeDescriptionLabel.setLabelFor(mergeFieldsPanel);
59         org.openide.awt.Mnemonics.setLocalizedText(typeDescriptionLabel, "jLabel2"); // NOI18N
60
typeDescriptionLabel.getAccessibleContext().setAccessibleDescription("Merge desired selection");
61
62         mergeFieldsPanel.setMinimumSize(new java.awt.Dimension JavaDoc(350, 500));
63         org.jdesktop.layout.GroupLayout mergeFieldsPanelLayout = new org.jdesktop.layout.GroupLayout(mergeFieldsPanel);
64         mergeFieldsPanel.setLayout(mergeFieldsPanelLayout);
65         mergeFieldsPanelLayout.setHorizontalGroup(
66             mergeFieldsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
67             .add(0, 769, Short.MAX_VALUE)
68         );
69         mergeFieldsPanelLayout.setVerticalGroup(
70             mergeFieldsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
71             .add(0, 226, Short.MAX_VALUE)
72         );
73
74         org.jdesktop.layout.GroupLayout previewPanelLayout = new org.jdesktop.layout.GroupLayout(previewPanel);
75         previewPanel.setLayout(previewPanelLayout);
76         previewPanelLayout.setHorizontalGroup(
77             previewPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
78             .add(0, 769, Short.MAX_VALUE)
79         );
80         previewPanelLayout.setVerticalGroup(
81             previewPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
82             .add(0, 73, Short.MAX_VALUE)
83         );
84
85         org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(MergePanel.class, "CTL_MergePanel_Preview")); // NOI18N
86
jLabel2.getAccessibleContext().setAccessibleDescription("Preview Figures for Chosen Action");
87
88         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
89         this.setLayout(layout);
90         layout.setHorizontalGroup(
91             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
92             .add(layout.createSequentialGroup()
93                 .addContainerGap()
94                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
95                     .add(mergeFieldsPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
96                     .add(typeDescriptionLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 769, Short.MAX_VALUE)
97                     .add(layout.createSequentialGroup()
98                         .add(jLabel1)
99                         .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
100                         .add(typeComboBox, 0, 704, Short.MAX_VALUE))
101                     .add(org.jdesktop.layout.GroupLayout.TRAILING, previewPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
102                     .add(jLabel2))
103                 .addContainerGap())
104         );
105         layout.setVerticalGroup(
106             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
107             .add(layout.createSequentialGroup()
108                 .addContainerGap()
109                 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
110                     .add(typeComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
111                     .add(jLabel1))
112                 .add(25, 25, 25)
113                 .add(typeDescriptionLabel)
114                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
115                 .add(mergeFieldsPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 226, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
116                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 57, Short.MAX_VALUE)
117                 .add(jLabel2)
118                 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
119                 .add(previewPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
120                 .addContainerGap())
121         );
122     }// </editor-fold>//GEN-END:initComponents
123

124     private void typeComboBoxActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_typeComboBoxActionPerformed
125
// TODO add your handling code here:
126
}//GEN-LAST:event_typeComboBoxActionPerformed
127

128     
129     // Variables declaration - do not modify//GEN-BEGIN:variables
130
private javax.swing.JLabel JavaDoc jLabel1;
131     private javax.swing.JLabel JavaDoc jLabel2;
132     final javax.swing.JPanel JavaDoc mergeFieldsPanel = new javax.swing.JPanel JavaDoc();
133     final javax.swing.JPanel JavaDoc previewPanel = new javax.swing.JPanel JavaDoc();
134     final javax.swing.JComboBox JavaDoc typeComboBox = new javax.swing.JComboBox JavaDoc();
135     final javax.swing.JLabel JavaDoc typeDescriptionLabel = new javax.swing.JLabel JavaDoc();
136     // End of variables declaration//GEN-END:variables
137

138 }
139
Popular Tags