|
@@ -104,6 +104,13 @@ public class TimePanel extends JPanel {
|
|
controller.resetSimulation();
|
|
controller.resetSimulation();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ timeSlider.addMouseMotionListener(new MouseAdapter() {
|
|
|
|
+ @Override
|
|
|
|
+ public void mouseDragged(MouseEvent e) {
|
|
|
|
+ controller.resetSimulation();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
|
|
// Panel
|
|
// Panel
|
|
timeBtnPanel.setBorder(null);
|
|
timeBtnPanel.setBorder(null);
|