1 19 20 package org.netbeans.modules.j2ee.ddloaders.multiview.ui; 21 22 import javax.swing.*; 23 24 27 public class RenameClassForm extends javax.swing.JPanel { 28 29 32 public RenameClassForm() { 33 initComponents(); 34 } 35 36 42 private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; 44 45 jLabel1 = new javax.swing.JLabel (); 46 changeNameTextField = new javax.swing.JTextField (); 47 renameCommentsCheckBox = new javax.swing.JCheckBox (); 48 spacerLabel = new javax.swing.JLabel (); 49 50 setLayout(new java.awt.GridBagLayout ()); 51 52 jLabel1.setText(org.openide.util.NbBundle.getMessage(RenameClassForm.class, "LBL_NewName")); 53 gridBagConstraints = new java.awt.GridBagConstraints (); 54 gridBagConstraints.gridx = 0; 55 gridBagConstraints.gridy = 0; 56 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 57 gridBagConstraints.insets = new java.awt.Insets (5, 5, 0, 5); 58 add(jLabel1, gridBagConstraints); 59 60 gridBagConstraints = new java.awt.GridBagConstraints (); 61 gridBagConstraints.gridx = 1; 62 gridBagConstraints.gridy = 0; 63 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 64 gridBagConstraints.weightx = 1.0; 65 gridBagConstraints.insets = new java.awt.Insets (5, 5, 0, 5); 66 add(changeNameTextField, gridBagConstraints); 67 68 renameCommentsCheckBox.setText(org.openide.util.NbBundle.getMessage(RenameClassForm.class, "LBL_RenameComments")); 69 gridBagConstraints = new java.awt.GridBagConstraints (); 70 gridBagConstraints.gridx = 0; 71 gridBagConstraints.gridy = 1; 72 gridBagConstraints.gridwidth = 2; 73 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 74 gridBagConstraints.insets = new java.awt.Insets (5, 5, 0, 5); 75 add(renameCommentsCheckBox, gridBagConstraints); 76 77 gridBagConstraints = new java.awt.GridBagConstraints (); 78 gridBagConstraints.gridx = 0; 79 gridBagConstraints.gridy = 2; 80 gridBagConstraints.weighty = 1.0; 81 add(spacerLabel, gridBagConstraints); 82 83 } 85 86 private javax.swing.JTextField changeNameTextField; 88 private javax.swing.JLabel jLabel1; 89 private javax.swing.JCheckBox renameCommentsCheckBox; 90 private javax.swing.JLabel spacerLabel; 91 93 public JTextField getChangeNameTextField() { 94 return changeNameTextField; 95 } 96 97 public JCheckBox getRenameCommentsCheckBox() { 98 return renameCommentsCheckBox; 99 } 100 } 101 | Popular Tags |