nameModelEditDialog = new NxEntryNameModelEditDialog(this, "Edit nxEntryName Model", true);
// Experiment Name
hiddenExperimentNameViewer = new Label();
experimentNameTitle = new JLabel("Experiment Name:");
experimentNameEditor = new TextFieldButton();
experimentNameEditor.setStateEnabled(false);
experimentNameEditor.setTextButton("Apply");
experimentNameEditor.setTextFieldColumns(30);
experimentNameRevertButton = new JButton("Revert");
experimentNameRevertButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
String text = hiddenExperimentNameViewer.getText();
if ((!hiddenExperimentNameViewer.getErrorText().equals(text))
&& (!text.trim().isEmpty())) {
experimentNameEditor.setText(text);
}
}
});
// Acquisition Name
hiddenAcquisitionNameViewer = new Label();
acquisitionNameTitle = new JLabel("Acquisition Name:");
acquisitionNameEditor = new TextFieldButton();
acquisitionNameEditor.setStateEnabled(false);
acquisitionNameEditor.setTextButton("Apply");
acquisitionNameEditor.setTextFieldColumns(30);
acquisitionNameRevertButton = new JButton("Revert");
acquisitionNameRevertButton.addActionListener(new ActionListener() {