Commit a18789b5 authored by Benedikt Zoennchen's avatar Benedikt Zoennchen

fix JSlider bug in AdjustPanel for the postVis.

parent ebcdabc9
Pipeline #164973 passed with stages
in 142 minutes and 40 seconds
......@@ -114,7 +114,7 @@ public class AdjustPanel extends JPanel implements Observer {
SwingUtilities.invokeLater(() -> {
synchronized (model) {
// update view
slider.setValueIsAdjusting(true);
//slider.setValueIsAdjusting(true);
if(model.hasOutputChanged()) {
slider.setMaximum(model.getLastStep());
slider.setMinimum(model.getFirstStep());
......@@ -126,7 +126,7 @@ public class AdjustPanel extends JPanel implements Observer {
sVisTimeStepLength.setValue(model.getVisTimeStepLength());
sTime.setValue(model.getSimTimeInSec());
//((SpinnerNumberModel)sModelTime).setStepSize(model.getSimTimeInSec());
slider.setValueIsAdjusting(false);
//slider.setValueIsAdjusting(false);
}
});
}
......
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