1 19 20 package org.netbeans.modules.subversion.ui.copy; 21 22 26 public class TwoFoldersPreviewPanel extends javax.swing.JPanel { 27 28 29 public TwoFoldersPreviewPanel() { 30 initComponents(); 31 } 32 33 38 private void initComponents() { 40 jLabel1 = new javax.swing.JLabel (); 41 42 jLabel1.setIcon(new javax.swing.ImageIcon (getClass().getResource("/org/netbeans/modules/subversion/resources/icons/twofolders.png"))); 43 jLabel1.setLabelFor(repositoryFolderTextField1); 44 jLabel1.getAccessibleContext().setAccessibleName("Preview Image"); 45 jLabel1.getAccessibleContext().setAccessibleDescription("Preview Image for "); 46 47 repositoryFolderTextField1.setColumns(27); 48 repositoryFolderTextField1.setEditable(false); 49 repositoryFolderTextField1.getAccessibleContext().setAccessibleName("Repository Url"); 50 repositoryFolderTextField1.getAccessibleContext().setAccessibleDescription("Repository Url"); 51 52 repositoryFolderTextField2.setColumns(27); 53 repositoryFolderTextField2.setEditable(false); 54 repositoryFolderTextField2.getAccessibleContext().setAccessibleName("Repository Url"); 55 repositoryFolderTextField2.getAccessibleContext().setAccessibleDescription("Repository Url"); 56 57 localFolderTextField.setColumns(27); 58 localFolderTextField.setEditable(false); 59 localFolderTextField.getAccessibleContext().setAccessibleName("Working Copy"); 60 localFolderTextField.getAccessibleContext().setAccessibleDescription("Working Copy"); 61 62 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); 63 this.setLayout(layout); 64 layout.setHorizontalGroup( 65 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 66 .add(layout.createSequentialGroup() 67 .add(jLabel1) 68 .add(21, 21, 21) 69 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 70 .add(localFolderTextField) 71 .add(repositoryFolderTextField1) 72 .add(repositoryFolderTextField2))) 73 ); 74 layout.setVerticalGroup( 75 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 76 .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() 77 .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 78 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) 79 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 80 .add(jLabel1) 81 .add(repositoryFolderTextField2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 82 .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() 83 .add(repositoryFolderTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 84 .add(103, 103, 103) 85 .add(localFolderTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) 86 .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 87 ); 88 } 90 91 private javax.swing.JLabel jLabel1; 93 final javax.swing.JTextField localFolderTextField = new javax.swing.JTextField (); 94 final javax.swing.JTextField repositoryFolderTextField1 = new javax.swing.JTextField (); 95 final javax.swing.JTextField repositoryFolderTextField2 = new javax.swing.JTextField (); 96 98 } 99 | Popular Tags |