KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > websvc > registry > ui > ResultViewerDialog


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.ui;
21
22 import java.awt.Dimension JavaDoc;
23 import java.awt.Toolkit JavaDoc;
24 import javax.swing.JButton JavaDoc;
25 import org.openide.util.HelpCtx;
26 import org.openide.util.NbBundle;
27
28 /**
29  *
30  * @author david
31  */

32 public class ResultViewerDialog extends javax.swing.JPanel JavaDoc {
33     private JButton JavaDoc okButton = new JButton JavaDoc(NbBundle.getMessage(this.getClass(), "OPTION_OK"));
34     /** Creates new form ResultViewerDialog */
35     public ResultViewerDialog() {
36         super();
37         initComponents();
38 // setSize(200,200);
39
// Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
40
// Dimension frameSize = this.getSize();
41
// setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
42

43     }
44     
45     /** This method is called from within the constructor to
46      * initialize the form.
47      * WARNING: Do NOT modify this code. The content of this method is
48      * always regenerated by the Form Editor.
49      */

50     private void initComponents() {//GEN-BEGIN:initComponents
51
jScrollPane1 = new javax.swing.JScrollPane JavaDoc();
52         resultEditorPane = new javax.swing.JEditorPane JavaDoc();
53
54         setLayout(new java.awt.BorderLayout JavaDoc());
55
56         resultEditorPane.setEditable(false);
57         jScrollPane1.setViewportView(resultEditorPane);
58
59         add(jScrollPane1, java.awt.BorderLayout.CENTER);
60
61     }//GEN-END:initComponents
62

63     /**
64      * @param args the command line arguments
65      */

66     public static void main(String JavaDoc args[]) {
67     }
68     
69     
70     public void setText(String JavaDoc inText) {
71         this.resultEditorPane.setText(inText);
72     }
73     
74     public String JavaDoc getText() {
75         return this.resultEditorPane.getText();
76     }
77     
78     public HelpCtx getHelpCtx() {
79         return HelpCtx.DEFAULT_HELP;
80     }
81     
82     public JButton JavaDoc getOkButton() {
83         return okButton;
84     }
85     
86     
87     // Variables declaration - do not modify//GEN-BEGIN:variables
88
private javax.swing.JScrollPane JavaDoc jScrollPane1;
89     private javax.swing.JEditorPane JavaDoc resultEditorPane;
90     // End of variables declaration//GEN-END:variables
91

92 }
93
Popular Tags