Skip to content
Snippets Groups Projects
Commit 5d6cfbda authored by cramakri's avatar cramakri
Browse files

LMS-2414 Fix messages in the data set picker.

SVN: 22318
parent 49015b04
No related branches found
No related tags found
No related merge requests found
...@@ -97,7 +97,7 @@ public class DataSetPickerDialog extends JDialog implements TreeWillExpandListen ...@@ -97,7 +97,7 @@ public class DataSetPickerDialog extends JDialog implements TreeWillExpandListen
final JScrollPane scrollPane = new JScrollPane(tree); final JScrollPane scrollPane = new JScrollPane(tree);
Object[] objects = new Object[] Object[] objects = new Object[]
{ "Filter experiments: ", filterField, "Select Sample:", scrollPane }; { "Filter experiments: ", filterField, "Select data set:", scrollPane };
final JOptionPane optionPane = final JOptionPane optionPane =
new JOptionPane(objects, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION); new JOptionPane(objects, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION);
optionPane.addPropertyChangeListener(new PropertyChangeListener() optionPane.addPropertyChangeListener(new PropertyChangeListener()
...@@ -110,8 +110,8 @@ public class DataSetPickerDialog extends JDialog implements TreeWillExpandListen ...@@ -110,8 +110,8 @@ public class DataSetPickerDialog extends JDialog implements TreeWillExpandListen
if (((Integer) evt.getNewValue()).intValue() == JOptionPane.OK_OPTION if (((Integer) evt.getNewValue()).intValue() == JOptionPane.OK_OPTION
&& tree.getSelectionPath() == null) && tree.getSelectionPath() == null)
{ {
JOptionPane.showMessageDialog(parent, "Sample needs to be selected!", JOptionPane.showMessageDialog(parent, "Data set needs to be selected!",
"No sample selected!", JOptionPane.WARNING_MESSAGE); "No data set selected!", JOptionPane.WARNING_MESSAGE);
optionPane.setValue(optionPane.getInitialValue()); optionPane.setValue(optionPane.getInitialValue());
} else if (((Integer) evt.getNewValue()).intValue() == JOptionPane.OK_OPTION } else if (((Integer) evt.getNewValue()).intValue() == JOptionPane.OK_OPTION
&& tree.getSelectionPath().getPath().length < 3) && tree.getSelectionPath().getPath().length < 3)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment