Search in sources :

Example 11 with XBayaTextArea

use of org.apache.airavata.xbaya.ui.widgets.XBayaTextArea in project airavata by apache.

the class WSNodeWindow method initGUI.

private void initGUI() {
    this.nameTextField = new XBayaTextField();
    this.nameTextField.setEditable(false);
    XBayaLabel nameLabel = new XBayaLabel("Name", this.nameTextField);
    this.idTextField = new XBayaTextField();
    this.idTextField.setEditable(false);
    XBayaLabel idLabel = new XBayaLabel("ID", this.idTextField);
    this.typeTextField = new XBayaTextField();
    this.typeTextField.setEditable(false);
    XBayaLabel typeLabel = new XBayaLabel("Type", this.typeTextField);
    this.wsdlTextArea = new XBayaTextArea();
    this.wsdlTextArea.setEditable(false);
    XBayaLabel wsdlLabel = new XBayaLabel("WSDL", this.wsdlTextArea);
    GridPanel infoPanel = new GridPanel();
    infoPanel.add(nameLabel);
    infoPanel.add(this.nameTextField);
    infoPanel.add(idLabel);
    infoPanel.add(this.idTextField);
    infoPanel.add(typeLabel);
    infoPanel.add(this.typeTextField);
    infoPanel.add(wsdlLabel);
    infoPanel.add(this.wsdlTextArea);
    infoPanel.layout(4, 2, 3, 1);
    JButton okButton = new JButton("OK");
    okButton.addActionListener(new AbstractAction() {

        public void actionPerformed(ActionEvent e) {
            hide();
        }
    });
    JPanel buttonPanel = new JPanel();
    buttonPanel.add(okButton);
    this.dialog = new XBayaDialog(this.engine.getGUI(), this.node.getName(), infoPanel, buttonPanel);
    this.dialog.setDefaultButton(okButton);
}
Also used : JPanel(javax.swing.JPanel) XBayaDialog(org.apache.airavata.xbaya.ui.dialogs.XBayaDialog) GridPanel(org.apache.airavata.xbaya.ui.widgets.GridPanel) ActionEvent(java.awt.event.ActionEvent) JButton(javax.swing.JButton) XBayaTextField(org.apache.airavata.xbaya.ui.widgets.XBayaTextField) XBayaTextArea(org.apache.airavata.xbaya.ui.widgets.XBayaTextArea) AbstractAction(javax.swing.AbstractAction) XBayaLabel(org.apache.airavata.xbaya.ui.widgets.XBayaLabel)

Aggregations

ActionEvent (java.awt.event.ActionEvent)11 AbstractAction (javax.swing.AbstractAction)11 JButton (javax.swing.JButton)11 GridPanel (org.apache.airavata.xbaya.ui.widgets.GridPanel)11 XBayaTextArea (org.apache.airavata.xbaya.ui.widgets.XBayaTextArea)11 JPanel (javax.swing.JPanel)10 XBayaDialog (org.apache.airavata.xbaya.ui.dialogs.XBayaDialog)9 XBayaLabel (org.apache.airavata.xbaya.ui.widgets.XBayaLabel)9 XBayaTextField (org.apache.airavata.xbaya.ui.widgets.XBayaTextField)8 JLabel (javax.swing.JLabel)2 TitledBorder (javax.swing.border.TitledBorder)2 PrintWriter (java.io.PrintWriter)1 StringWriter (java.io.StringWriter)1 JCheckBox (javax.swing.JCheckBox)1 EtchedBorder (javax.swing.border.EtchedBorder)1 ListSelectionEvent (javax.swing.event.ListSelectionEvent)1 ListSelectionListener (javax.swing.event.ListSelectionListener)1 MonitorPanel (org.apache.airavata.xbaya.ui.views.MonitorPanel)1 XBayaList (org.apache.airavata.xbaya.ui.widgets.XBayaList)1