KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > websvc > registry > actions > AddWSGroupPanel


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.websvc.registry.actions;
21
22 import javax.swing.text.Document JavaDoc;
23
24 /** AddWSGroupPanel.java - simple panel with one text field for Web Service Group name
25  *
26  * @author mkuchtiak
27  * Created on 22. November 2005, 10:54
28  */

29 public class AddWSGroupPanel extends javax.swing.JPanel JavaDoc {
30
31     /** Creates new form AddWSGroupPanel */
32     public AddWSGroupPanel() {
33         initComponents();
34     }
35
36     String JavaDoc getGroupName() {
37         return jTextField1.getText();
38     }
39
40     Document JavaDoc getTFDocument() {
41         return jTextField1.getDocument();
42     }
43     
44     /** This method is called from within the constructor to
45      * initialize the form.
46      * WARNING: Do NOT modify this code. The content of this method is
47      * always regenerated by the Form Editor.
48      */

49     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
50
private void initComponents() {
51         java.awt.GridBagConstraints JavaDoc gridBagConstraints;
52
53         jLabel1 = new javax.swing.JLabel JavaDoc();
54         jTextField1 = new javax.swing.JTextField JavaDoc();
55
56         setLayout(new java.awt.GridBagLayout JavaDoc());
57
58         getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(AddWSGroupPanel.class, "A11Y_AddWSGroupDlg"));
59         jLabel1.setLabelFor(jTextField1);
60         org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(AddWSGroupPanel.class, "LBL_GroupName"));
61         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
62         gridBagConstraints.insets = new java.awt.Insets JavaDoc(12, 12, 0, 0);
63         add(jLabel1, gridBagConstraints);
64
65         jTextField1.setColumns(20);
66         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
67         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
68         gridBagConstraints.weightx = 1.0;
69         gridBagConstraints.insets = new java.awt.Insets JavaDoc(12, 12, 0, 12);
70         add(jTextField1, gridBagConstraints);
71         jTextField1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(AddWSGroupPanel.class, "A11Y_AddWSGroupDlg"));
72
73     }
74     // </editor-fold>//GEN-END:initComponents
75

76     
77     // Variables declaration - do not modify//GEN-BEGIN:variables
78
public javax.swing.JLabel JavaDoc jLabel1;
79     public javax.swing.JTextField JavaDoc jTextField1;
80     // End of variables declaration//GEN-END:variables
81

82 }
83
Popular Tags