removed pause button

This commit is contained in:
2015-04-08 22:06:50 +02:00
parent eab4aedc1d
commit 1563368bf8
+2 -14
View File
@@ -37,8 +37,8 @@ public class ControlPanel extends JPanel
setFocusable(false);
JPanel simulatorPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
simulatorPanel.setPreferredSize(new Dimension(350,50));
simulatorPanel.setMaximumSize(new Dimension(350,50));
simulatorPanel.setPreferredSize(new Dimension(290,50));
simulatorPanel.setMaximumSize(new Dimension(290,50));
add(simulatorPanel);
{
JLabel simulatorLabel = new JLabel("Simulator: ");
@@ -57,18 +57,6 @@ public class ControlPanel extends JPanel
});
simulatorPanel.add(playButton);
JButton pauseButton = new JButton("Pause");
pauseButton.setFocusable(false);
pauseButton.setFont(new Font("Segoe UI", Font.PLAIN, 20));
pauseButton.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e)
{
p.getT().stop();
runningLabel.setText("Simulation Paused");
}
});
simulatorPanel.add(pauseButton);
JButton stopButton = new JButton("Stop");
stopButton.setFocusable(false);
stopButton.setFont(new Font("Segoe UI", Font.PLAIN, 20));