1 19 20 package org.netbeans.modules.subversion.ui.copy; 21 22 import org.netbeans.modules.subversion.ui.wizards.*; 23 24 28 public class MergePanel extends javax.swing.JPanel { 29 30 31 public MergePanel() { 32 initComponents(); 33 } 34 35 40 private void initComponents() { 42 jLabel1 = new javax.swing.JLabel (); 43 jLabel2 = new javax.swing.JLabel (); 44 45 typeComboBox.setModel(new javax.swing.DefaultComboBoxModel (new String [] { "Item 1", "Item 2", "Item 3", "Item 4" })); 46 typeComboBox.addActionListener(new java.awt.event.ActionListener () { 47 public void actionPerformed(java.awt.event.ActionEvent 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")); jLabel1.getAccessibleContext().setAccessibleDescription("Merge From Repository URL"); 57 58 typeDescriptionLabel.setLabelFor(mergeFieldsPanel); 59 org.openide.awt.Mnemonics.setLocalizedText(typeDescriptionLabel, "jLabel2"); typeDescriptionLabel.getAccessibleContext().setAccessibleDescription("Merge desired selection"); 61 62 mergeFieldsPanel.setMinimumSize(new java.awt.Dimension (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")); 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 } 124 private void typeComboBoxActionPerformed(java.awt.event.ActionEvent evt) { } 128 129 private javax.swing.JLabel jLabel1; 131 private javax.swing.JLabel jLabel2; 132 final javax.swing.JPanel mergeFieldsPanel = new javax.swing.JPanel (); 133 final javax.swing.JPanel previewPanel = new javax.swing.JPanel (); 134 final javax.swing.JComboBox typeComboBox = new javax.swing.JComboBox (); 135 final javax.swing.JLabel typeDescriptionLabel = new javax.swing.JLabel (); 136 138 } 139 | Popular Tags |