KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > earproject > ui > customizer > AddFilter


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.j2ee.earproject.ui.customizer;
21
22 import org.openide.util.NbBundle;
23
24 public class AddFilter extends javax.swing.JPanel JavaDoc {
25
26     /** Creates new form AddFilter */
27     public AddFilter() {
28         initComponents();
29         this.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(CustomizerGeneral.class, "ACS_AddFilterDialog_A11YDesc")); //NOI18N
30
}
31
32     /** This method is called from within the constructor to
33      * initialize the form.
34      * WARNING: Do NOT modify this code. The content of this method is
35      * always regenerated by the Form Editor.
36      */

37     private void initComponents() {//GEN-BEGIN:initComponents
38
java.awt.GridBagConstraints JavaDoc gridBagConstraints;
39
40         jLabelExpression = new javax.swing.JLabel JavaDoc();
41         jTextFieldExpression = new javax.swing.JTextField JavaDoc();
42
43         setLayout(new java.awt.GridBagLayout JavaDoc());
44
45         setPreferredSize(new java.awt.Dimension JavaDoc(300, 47));
46         jLabelExpression.setLabelFor(jTextFieldExpression);
47         jLabelExpression.setText(NbBundle.getMessage(AddFilter.class, "LBL_AddFilter_Expression_JLabel"));
48         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
49         gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
50         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
51         gridBagConstraints.insets = new java.awt.Insets JavaDoc(12, 12, 11, 11);
52         add(jLabelExpression, gridBagConstraints);
53
54         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
55         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
56         gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
57         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
58         gridBagConstraints.weightx = 1.0;
59         gridBagConstraints.weighty = 1.0;
60         gridBagConstraints.insets = new java.awt.Insets JavaDoc(12, 0, 11, 11);
61         add(jTextFieldExpression, gridBagConstraints);
62         jTextFieldExpression.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(AddFilter.class, "ACS_AddFilter_Expression_A11YDesc"));
63
64     }//GEN-END:initComponents
65

66     // Variables declaration - do not modify//GEN-BEGIN:variables
67
private javax.swing.JLabel JavaDoc jLabelExpression;
68     private javax.swing.JTextField JavaDoc jTextFieldExpression;
69     // End of variables declaration//GEN-END:variables
70

71     protected String JavaDoc getExpression() {
72         String JavaDoc exp = jTextFieldExpression.getText().trim();
73         jTextFieldExpression.setText(""); //NOI18N
74
return exp;
75     }
76 }
77
Popular Tags