1 19 20 package org.netbeans.modules.mdrxml.looks.actions; 21 22 26 public class NewTextPanel extends javax.swing.JPanel { 27 28 29 public NewTextPanel() { 30 initComponents(); 31 this.postInitComponents (); 32 } 33 34 35 private void postInitComponents () { 36 this.jLabel1.setDisplayedMnemonic (java.util.ResourceBundle.getBundle("org/netbeans/modules/mdrxml/looks/actions/Bundle").getString("MNE_TextValue").charAt(0)); 37 this.setPreferredSize (new java.awt.Dimension (300,200)); 38 } 39 40 public String getText () { 41 return this.text.getText(); 42 } 43 44 public void setText (String text) { 45 this.text.setText (text); 46 } 47 48 53 private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; 55 56 jLabel1 = new javax.swing.JLabel (); 57 jScrollPane1 = new javax.swing.JScrollPane (); 58 text = new javax.swing.JTextArea (); 59 60 setLayout(new java.awt.GridBagLayout ()); 61 62 jLabel1.setText(java.util.ResourceBundle.getBundle("org/netbeans/modules/mdrxml/looks/actions/Bundle").getString("TXT_TextValue")); 63 jLabel1.setToolTipText("null"); 64 jLabel1.setLabelFor(text); 65 gridBagConstraints = new java.awt.GridBagConstraints (); 66 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 67 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 68 gridBagConstraints.insets = new java.awt.Insets (12, 12, 6, 12); 69 gridBagConstraints.weightx = 1.0; 70 add(jLabel1, gridBagConstraints); 71 72 text.setToolTipText(java.util.ResourceBundle.getBundle("org/netbeans/modules/mdrxml/looks/actions/Bundle").getString("TIP_TextValue")); 73 jScrollPane1.setViewportView(text); 74 75 gridBagConstraints = new java.awt.GridBagConstraints (); 76 gridBagConstraints.gridx = 0; 77 gridBagConstraints.gridy = 1; 78 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 79 gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER; 80 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; 81 gridBagConstraints.insets = new java.awt.Insets (6, 12, 12, 12); 82 gridBagConstraints.weightx = 1.0; 83 gridBagConstraints.weighty = 1.0; 84 add(jScrollPane1, gridBagConstraints); 85 86 } 88 89 private javax.swing.JScrollPane jScrollPane1; 91 private javax.swing.JTextArea text; 92 private javax.swing.JLabel jLabel1; 93 95 } 96 | Popular Tags |