|
@@ -49,14 +49,19 @@ public class TimePanel extends JPanel {
|
|
timeSlider.setMaximum(model.getIterations());
|
|
timeSlider.setMaximum(model.getIterations());
|
|
timeSlider.setValue(1);
|
|
timeSlider.setValue(1);
|
|
timeSlider.setBackground(Color.WHITE);
|
|
timeSlider.setBackground(Color.WHITE);
|
|
|
|
+ timeBtnPanel.setBackground(Color.WHITE);
|
|
|
|
|
|
// Buttons
|
|
// Buttons
|
|
timeBtnPanel.setLayout(new FlowLayout(FlowLayout.CENTER, 0, 0));
|
|
timeBtnPanel.setLayout(new FlowLayout(FlowLayout.CENTER, 0, 0));
|
|
|
|
|
|
|
|
+ playBtn.setBackground(Color.WHITE);
|
|
|
|
+ playBtn.setBorderPainted(false);
|
|
playBtn.setBorder(new LineBorder(Color.WHITE, 4));
|
|
playBtn.setBorder(new LineBorder(Color.WHITE, 4));
|
|
playBtn.setIcon(new ImageIcon(new ImageIcon(this.getClass().getResource("/Button_Images/play.png")).getImage()
|
|
playBtn.setIcon(new ImageIcon(new ImageIcon(this.getClass().getResource("/Button_Images/play.png")).getImage()
|
|
.getScaledInstance(30, 30, Image.SCALE_SMOOTH)));
|
|
.getScaledInstance(30, 30, Image.SCALE_SMOOTH)));
|
|
|
|
|
|
|
|
+ timeResetBtn.setBorderPainted(false);
|
|
|
|
+ timeResetBtn.setBackground(Color.WHITE);
|
|
timeResetBtn.setBorder(new LineBorder(Color.WHITE, 4));
|
|
timeResetBtn.setBorder(new LineBorder(Color.WHITE, 4));
|
|
timeResetBtn.setIcon(new ImageIcon(new ImageIcon(this.getClass().getResource("/Button_Images/reset.png"))
|
|
timeResetBtn.setIcon(new ImageIcon(new ImageIcon(this.getClass().getResource("/Button_Images/reset.png"))
|
|
.getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH)));
|
|
.getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH)));
|
|
@@ -66,6 +71,7 @@ public class TimePanel extends JPanel {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ timeForwardBtn.setBorderPainted(false);
|
|
timeForwardBtn.setContentAreaFilled(false);
|
|
timeForwardBtn.setContentAreaFilled(false);
|
|
timeForwardBtn.setBorder(new LineBorder(Color.WHITE, 4));
|
|
timeForwardBtn.setBorder(new LineBorder(Color.WHITE, 4));
|
|
timeForwardBtn.setIcon(new ImageIcon(new ImageIcon(this.getClass().getResource("/Button_Images/forward.png"))
|
|
timeForwardBtn.setIcon(new ImageIcon(new ImageIcon(this.getClass().getResource("/Button_Images/forward.png"))
|
|
@@ -76,6 +82,8 @@ public class TimePanel extends JPanel {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ timeBackwardBtn.setBackground(Color.WHITE);
|
|
|
|
+ timeBackwardBtn.setBorderPainted(false);
|
|
timeBackwardBtn.setBorder(new LineBorder(Color.WHITE, 4));
|
|
timeBackwardBtn.setBorder(new LineBorder(Color.WHITE, 4));
|
|
timeBackwardBtn.setIcon(new ImageIcon(new ImageIcon(this.getClass().getResource("/Button_Images/backward.png"))
|
|
timeBackwardBtn.setIcon(new ImageIcon(new ImageIcon(this.getClass().getResource("/Button_Images/backward.png"))
|
|
.getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH)));
|
|
.getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH)));
|