blob: 554e9aabc290a526e69b2b20a137c4664105f473 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.netbeans.modules.websvc.manager.ui;
import javax.swing.JButton;
import org.openide.util.HelpCtx;
import org.openide.util.NbBundle;
/**
*
* @author david
*/
public class ResultViewerDialog extends javax.swing.JPanel {
private JButton okButton = new JButton(NbBundle.getMessage(this.getClass(), "OPTION_OK"));
/** Creates new form ResultViewerDialog */
public ResultViewerDialog() {
super();
initComponents();
// Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
// Dimension frameSize = this.getSize();
// setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
private void initComponents() {//GEN-BEGIN:initComponents
jScrollPane1 = new javax.swing.JScrollPane();
resultEditorPane = new javax.swing.JEditorPane();
setLayout(new java.awt.BorderLayout());
resultEditorPane.setEditable(false);
jScrollPane1.setViewportView(resultEditorPane);
add(jScrollPane1, java.awt.BorderLayout.CENTER);
}//GEN-END:initComponents
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
}
public void setText(String inText) {
this.resultEditorPane.setText(inText);
}
public String getText() {
return this.resultEditorPane.getText();
}
public HelpCtx getHelpCtx() {
return new HelpCtx("projrave_ui_elements_server_nav_add_websvcdb");
}
public JButton getOkButton() {
return okButton;
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JEditorPane resultEditorPane;
// End of variables declaration//GEN-END:variables
}