1 19 20 package org.netbeans.modules.websvc.registry.ui; 21 22 import java.awt.Dimension ; 23 import java.awt.Toolkit ; 24 import javax.swing.JButton ; 25 import org.openide.util.HelpCtx; 26 import org.openide.util.NbBundle; 27 28 32 public class ResultViewerDialog extends javax.swing.JPanel { 33 private JButton okButton = new JButton (NbBundle.getMessage(this.getClass(), "OPTION_OK")); 34 35 public ResultViewerDialog() { 36 super(); 37 initComponents(); 38 43 } 44 45 50 private void initComponents() { jScrollPane1 = new javax.swing.JScrollPane (); 52 resultEditorPane = new javax.swing.JEditorPane (); 53 54 setLayout(new java.awt.BorderLayout ()); 55 56 resultEditorPane.setEditable(false); 57 jScrollPane1.setViewportView(resultEditorPane); 58 59 add(jScrollPane1, java.awt.BorderLayout.CENTER); 60 61 } 63 66 public static void main(String args[]) { 67 } 68 69 70 public void setText(String inText) { 71 this.resultEditorPane.setText(inText); 72 } 73 74 public String getText() { 75 return this.resultEditorPane.getText(); 76 } 77 78 public HelpCtx getHelpCtx() { 79 return HelpCtx.DEFAULT_HELP; 80 } 81 82 public JButton getOkButton() { 83 return okButton; 84 } 85 86 87 private javax.swing.JScrollPane jScrollPane1; 89 private javax.swing.JEditorPane resultEditorPane; 90 92 } 93 | Popular Tags |