Commit 2d039a02 authored by Benedikt Kleinmeier's avatar Benedikt Kleinmeier
Browse files

In "PostvisualizationWindow", show error popup if trajectory file could not be read.

parent ec80f092
......@@ -338,8 +338,13 @@ public class PostvisualizationWindow extends JPanel implements Observer {
public void loadOutputFile(final File trajectoryFile, final Scenario scenario) throws IOException {
try {
model.init(IOOutput.readTrajectories(trajectoryFile.toPath(), scenario), scenario, trajectoryFile.getParent());
} catch (Exception ex) {
JOptionPane.showMessageDialog(this, ex.getMessage(), Messages.getString("Error.text"), JOptionPane.ERROR_MESSAGE);
public void loadOutputFile(final Scenario scenario) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment