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);
}
Aggregations