1 19 20 package org.netbeans.modules.subversion.ui.copy; 21 22 26 public class OneFolderPreviewPanel extends javax.swing.JPanel { 27 28 29 public OneFolderPreviewPanel() { 30 initComponents(); 31 } 32 33 38 private void initComponents() { 40 jLabel1 = new javax.swing.JLabel (); 41 42 repositoryFolderTextField.setEditable(false); 43 repositoryFolderTextField.setText(" "); repositoryFolderTextField.getAccessibleContext().setAccessibleName("Repository Folder Location"); 45 repositoryFolderTextField.getAccessibleContext().setAccessibleDescription("Repository Folder Location"); 46 47 localFolderTextField.setEditable(false); 48 localFolderTextField.setText(" "); localFolderTextField.getAccessibleContext().setAccessibleName("Local Copy"); 50 localFolderTextField.getAccessibleContext().setAccessibleDescription("Local Copy"); 51 52 jLabel1.setIcon(new javax.swing.ImageIcon (getClass().getResource("/org/netbeans/modules/subversion/resources/icons/onefolder.png"))); 53 jLabel1.setLabelFor(repositoryFolderTextField); 54 55 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); 56 this.setLayout(layout); 57 layout.setHorizontalGroup( 58 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 59 .add(layout.createSequentialGroup() 60 .add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 380, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 61 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 62 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 63 .add(localFolderTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 231, Short.MAX_VALUE) 64 .add(repositoryFolderTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 231, Short.MAX_VALUE))) 65 ); 66 layout.setVerticalGroup( 67 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 68 .add(layout.createSequentialGroup() 69 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 70 .add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 101, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 71 .add(layout.createSequentialGroup() 72 .addContainerGap() 73 .add(repositoryFolderTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 74 .add(39, 39, 39) 75 .add(localFolderTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) 76 .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 77 ); 78 } 80 81 private javax.swing.JLabel jLabel1; 83 final javax.swing.JTextField localFolderTextField = new javax.swing.JTextField (); 84 final javax.swing.JTextField repositoryFolderTextField = new javax.swing.JTextField (); 85 87 } 88 | Popular Tags |