this.addApplicationButton.setText("Update Application");
}
private void initGUI() {
GridPanel infoPanel = new GridPanel();
this.applicationNameTextField = new XBayaTextField();
this.applicationNameLabel = new XBayaLabel("Application Name", this.applicationNameTextField);
this.hostNameComboBox = new XBayaComboBox(new DefaultComboBoxModel(initHostNameList()));
this.hostNameComboBox.setEditable(false);
this.hostNameLabel = new XBayaLabel("Host Name", this.hostNameComboBox);
this.executableTextField = new XBayaTextField();
this.executableLabel = new XBayaLabel("Executable", this.executableTextField);
this.workDirectoryTextField = new XBayaTextField("/tmp");
this.workDirectoryLabel = new XBayaLabel("Work Directory", this.workDirectoryTextField);
this.tempDirTextField = new XBayaTextField("/tmp");
this.tempDirLabel = new XBayaLabel("Temp Dir", this.tempDirTextField);
this.projectNameComboBox = new XBayaComboBox(new DefaultComboBoxModel());
this.projectNameComboBox.setEditable(true);
this.projectNameLabel = new XBayaLabel("TeraGrid Project Name (optional)", this.projectNameComboBox);
this.jobTypeComboBox = new XBayaComboBox(new DefaultComboBoxModel(new String[] { "single", "mpi", "multiple", "condor" }));
this.jobTypeComboBox.setEditable(false);
this.jobTypeLabel = new XBayaLabel("Job Type (optional)", this.jobTypeComboBox);
this.queueTextField = new XBayaTextField();
this.queueLabel = new XBayaLabel("Queue (optional)", this.queueTextField);
this.maxWallTimeTextField = new XBayaTextField();
this.maxWallTimeLabel = new XBayaLabel("Max Wall Time (optional)", this.maxWallTimeTextField);
this.procsCountTextField = new XBayaTextField();
this.procsCountLabel = new XBayaLabel("Processors Count (optional)", this.procsCountTextField);
this.appParaFileTextField = new XBayaTextField();
this.appParaFileLabel = new XBayaLabel("Application Parameter File (optional)", this.appParaFileTextField);
this.minMemoryTextField = new XBayaTextField();
this.minMemoryLabel = new XBayaLabel("Min Memory (optional)", this.minMemoryTextField);
this.hostCountTextField = new XBayaTextField();
this.hostCountLabel = new XBayaLabel("Host Count (optional)", this.hostCountTextField);
this.rslParamNameTextField = new XBayaTextField();
this.rslParaNameLabel = new XBayaLabel("RSL Param Name (optional)", this.rslParamNameTextField);
this.rslParamValueTextField = new XBayaTextField();
this.rslParamValueLabel = new XBayaLabel("RSL Param Value (optional)", this.rslParamValueTextField);
this.isPublicCheckBox = new JCheckBox();
this.isPublicLabel = new XBayaLabel("Is Public (optional)", this.isPublicCheckBox);
infoPanel.add(this.applicationNameLabel);
infoPanel.add(this.applicationNameTextField);
infoPanel.add(this.hostNameLabel);
infoPanel.add(this.hostNameComboBox);
infoPanel.add(this.executableLabel);
infoPanel.add(this.executableTextField);
infoPanel.add(this.workDirectoryLabel);
infoPanel.add(this.workDirectoryTextField);
infoPanel.add(this.tempDirLabel);
infoPanel.add(this.tempDirTextField);
infoPanel.add(this.projectNameLabel);
infoPanel.add(this.projectNameComboBox);
infoPanel.add(this.jobTypeLabel);
infoPanel.add(this.jobTypeComboBox);
infoPanel.add(this.queueLabel);
infoPanel.add(this.queueTextField);
infoPanel.add(this.maxWallTimeLabel);
infoPanel.add(this.maxWallTimeTextField);
infoPanel.add(this.procsCountLabel);
infoPanel.add(this.procsCountTextField);
infoPanel.add(this.appParaFileLabel);
infoPanel.add(this.appParaFileTextField);
infoPanel.add(this.minMemoryLabel);
infoPanel.add(this.minMemoryTextField);
infoPanel.add(this.hostCountLabel);
infoPanel.add(this.hostCountTextField);
infoPanel.add(this.rslParaNameLabel);
infoPanel.add(this.rslParamNameTextField);
infoPanel.add(this.rslParamValueLabel);
infoPanel.add(this.rslParamValueTextField);
infoPanel.add(this.isPublicLabel);
infoPanel.add(this.isPublicCheckBox);
infoPanel.layout(16, 2, GridPanel.WEIGHT_NONE, 1);
JPanel buttonPanel = new JPanel();
this.addApplicationButton = new JButton();
this.addApplicationButton.setText("Add Application");
this.addApplicationButton.addActionListener(new java.awt.event.ActionListener() {