|
@@ -1,6 +1,7 @@
|
|
package ui.view;
|
|
package ui.view;
|
|
|
|
|
|
import java.awt.BorderLayout;
|
|
import java.awt.BorderLayout;
|
|
|
|
+import java.awt.Dimension;
|
|
import java.awt.FlowLayout;
|
|
import java.awt.FlowLayout;
|
|
import java.awt.Image;
|
|
import java.awt.Image;
|
|
import java.awt.Point;
|
|
import java.awt.Point;
|
|
@@ -13,12 +14,15 @@ import java.awt.event.MouseListener;
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
|
|
|
import javax.swing.AbstractAction;
|
|
import javax.swing.AbstractAction;
|
|
|
|
+import javax.swing.Box;
|
|
import javax.swing.ImageIcon;
|
|
import javax.swing.ImageIcon;
|
|
import javax.swing.JButton;
|
|
import javax.swing.JButton;
|
|
import javax.swing.JLabel;
|
|
import javax.swing.JLabel;
|
|
import javax.swing.JPanel;
|
|
import javax.swing.JPanel;
|
|
|
|
+import javax.swing.JSeparator;
|
|
import javax.swing.JSlider;
|
|
import javax.swing.JSlider;
|
|
import javax.swing.KeyStroke;
|
|
import javax.swing.KeyStroke;
|
|
|
|
+import javax.swing.SwingConstants;
|
|
import javax.swing.Timer;
|
|
import javax.swing.Timer;
|
|
import javax.swing.event.ChangeEvent;
|
|
import javax.swing.event.ChangeEvent;
|
|
import javax.swing.event.ChangeListener;
|
|
import javax.swing.event.ChangeListener;
|
|
@@ -220,14 +224,11 @@ public class TimePanel extends JPanel {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
- // timeBtnPanel.add(simSpeedText);
|
|
|
|
timeBtnPanel.add(playBtn);
|
|
timeBtnPanel.add(playBtn);
|
|
|
|
+ timeBtnPanel.add(Box.createRigidArea(new Dimension(10,0)));
|
|
timeBtnPanel.add(timeResetBtn);
|
|
timeBtnPanel.add(timeResetBtn);
|
|
- /*
|
|
|
|
- * the backwards button isnt used anymore
|
|
|
|
- */
|
|
|
|
- // timeBtnPanel.add(timeBackwardBtn);
|
|
|
|
- timeBtnPanel.add(timeForwardBtn);
|
|
|
|
|
|
+ timeBtnPanel.add(Box.createRigidArea(new Dimension(10,0)));
|
|
|
|
+ timeBtnPanel.add(timeForwardBtn);
|
|
|
|
|
|
// Speed Panel
|
|
// Speed Panel
|
|
speedPanel.add(simSpeedLabel);
|
|
speedPanel.add(simSpeedLabel);
|