1 19 package org.netbeans.modules.subversion.options; 20 21 25 public class AnnotationSettingsPanel extends javax.swing.JPanel { 26 27 28 public AnnotationSettingsPanel() { 29 initComponents(); 30 } 31 32 37 private void initComponents() { 39 40 jLabel3 = new javax.swing.JLabel (); 41 jLabel2 = new javax.swing.JLabel (); 42 jScrollPane1 = new javax.swing.JScrollPane (); 43 44 resetButton.setText(org.openide.util.NbBundle.getMessage(AnnotationSettingsPanel.class, "AnnotationSettingsPanel.resetButton.text")); 46 jLabel3.setText(org.openide.util.NbBundle.getMessage(AnnotationSettingsPanel.class, "AnnotationSettingsPanel.jLabel3.text")); 48 jLabel2.setText(org.openide.util.NbBundle.getMessage(AnnotationSettingsPanel.class, "AnnotationSettingsPanel.jLabel2.text")); 50 annotationTextField.setText(org.openide.util.NbBundle.getMessage(AnnotationSettingsPanel.class, "AnnotationSettingsPanel.annotationTextField.text")); 52 labelsButton.setText(org.openide.util.NbBundle.getMessage(AnnotationSettingsPanel.class, "AnnotationSettingsPanel.labelsButton.text")); 54 upButton.setText(org.openide.util.NbBundle.getMessage(AnnotationSettingsPanel.class, "AnnotationSettingsPanel.upButton.text")); 56 downButton.setText(org.openide.util.NbBundle.getMessage(AnnotationSettingsPanel.class, "AnnotationSettingsPanel.downButton.text")); 58 newButton.setText(org.openide.util.NbBundle.getMessage(AnnotationSettingsPanel.class, "AnnotationSettingsPanel.newButton.text")); 60 removeButton.setText(org.openide.util.NbBundle.getMessage(AnnotationSettingsPanel.class, "AnnotationSettingsPanel.removeButton.text")); 62 jScrollPane1.setBackground(new java.awt.Color (255, 255, 255)); 63 64 expresionsTable.setModel(new javax.swing.table.DefaultTableModel ( 65 new Object [][] { 66 {".*/(branches|tags)/(.+?)/.*", "\\2"} 67 }, 68 new String [] { 69 "Repository Url Pattern", "Folder Name" 70 } 71 ) { 72 Class [] types = new Class [] { 73 java.lang.String .class, java.lang.String .class 74 }; 75 76 public Class getColumnClass(int columnIndex) { 77 return types [columnIndex]; 78 } 79 }); 80 jScrollPane1.setViewportView(expresionsTable); 81 82 warningLabel.setForeground(new java.awt.Color (255, 0, 0)); 83 warningLabel.setText(org.openide.util.NbBundle.getMessage(AnnotationSettingsPanel.class, "AnnotationSettingsPanel.warningLabel.text")); 85 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); 86 this.setLayout(layout); 87 layout.setHorizontalGroup( 88 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 89 .add(layout.createSequentialGroup() 90 .addContainerGap() 91 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 92 .add(layout.createSequentialGroup() 93 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 94 .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE) 95 .add(layout.createSequentialGroup() 96 .add(jLabel3) 97 .add(270, 270, 270)) 98 .add(layout.createSequentialGroup() 99 .add(jLabel2) 100 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 101 .add(annotationTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 367, Short.MAX_VALUE))) 102 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 103 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false) 104 .add(labelsButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 105 .add(upButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 106 .add(downButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 107 .add(newButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 108 .add(removeButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) 109 .add(layout.createSequentialGroup() 110 .add(resetButton) 111 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 112 .add(warningLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 441, Short.MAX_VALUE))) 113 .addContainerGap()) 114 ); 115 layout.setVerticalGroup( 116 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 117 .add(layout.createSequentialGroup() 118 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 119 .add(layout.createSequentialGroup() 120 .add(18, 18, 18) 121 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 122 .add(jLabel2) 123 .add(annotationTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 124 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 125 .add(jLabel3) 126 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 127 .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE)) 128 .add(layout.createSequentialGroup() 129 .addContainerGap() 130 .add(labelsButton) 131 .add(27, 27, 27) 132 .add(upButton) 133 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 134 .add(downButton) 135 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 26, Short.MAX_VALUE) 136 .add(newButton) 137 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 138 .add(removeButton))) 139 .add(6, 6, 6) 140 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) 141 .add(resetButton) 142 .add(warningLabel)) 143 .addContainerGap()) 144 ); 145 } 147 148 final javax.swing.JTextField annotationTextField = new javax.swing.JTextField (); 150 final javax.swing.JButton downButton = new javax.swing.JButton (); 151 final javax.swing.JTable expresionsTable = new javax.swing.JTable (); 152 private javax.swing.JLabel jLabel2; 153 private javax.swing.JLabel jLabel3; 154 private javax.swing.JScrollPane jScrollPane1; 155 final javax.swing.JButton labelsButton = new javax.swing.JButton (); 156 final javax.swing.JButton newButton = new javax.swing.JButton (); 157 final javax.swing.JButton removeButton = new javax.swing.JButton (); 158 final javax.swing.JButton resetButton = new javax.swing.JButton (); 159 final javax.swing.JButton upButton = new javax.swing.JButton (); 160 final javax.swing.JLabel warningLabel = new javax.swing.JLabel (); 161 163 } 164 | Popular Tags |