Browse Source

Attempt to fix GUI threading bug in GUI simulator "plot path" feature.

accumulation-v4.7
Dave Parker 5 years ago
parent
commit
ed7a20c693
  1. 8
      prism/src/userinterface/simulator/SimPathPlotThread.java

8
prism/src/userinterface/simulator/SimPathPlotThread.java

@ -26,6 +26,8 @@
package userinterface.simulator;
import javax.swing.SwingUtilities;
import prism.PrismException;
import simulator.GenerateSimulationPath;
import simulator.SimulatorEngine;
@ -51,6 +53,10 @@ public class SimPathPlotThread extends GUIComputationThread
this.graphModel = graphModel;
}
public void run()
{
SwingUtilities.invokeLater(new Runnable()
{
public void run()
{
try {
@ -65,4 +71,6 @@ public class SimPathPlotThread extends GUIComputationThread
error(e.getMessage());
}
}
});
}
}
Loading…
Cancel
Save