|
@@ -3,6 +3,7 @@ import java.util.*;
|
|
|
import java.awt.*;
|
|
|
import javax.swing.*;
|
|
|
import javax.swing.event.*;
|
|
|
+import java.awt.event.*;
|
|
|
|
|
|
public class Controls extends JPanel implements Observer
|
|
|
{
|
|
@@ -23,7 +24,7 @@ public class Controls extends JPanel implements Observer
|
|
|
this.setPreferredSize(new Dimension(1280,75));
|
|
|
this.setMinimumSize(new Dimension(320, 75));
|
|
|
this.play = new JButton("Play");
|
|
|
- changeButton.addActionListener(new ActionListener()
|
|
|
+ play.addActionListener(new ActionListener()
|
|
|
{
|
|
|
public void actionPerformed(ActionEvent e)
|
|
|
{
|
|
@@ -31,7 +32,7 @@ public class Controls extends JPanel implements Observer
|
|
|
}
|
|
|
});
|
|
|
this.rewind = new JButton("Rewind");
|
|
|
- changeButton.addActionListener(new ActionListener()
|
|
|
+ rewind.addActionListener(new ActionListener()
|
|
|
{
|
|
|
public void actionPerformed(ActionEvent e)
|
|
|
{
|
|
@@ -51,15 +52,15 @@ public class Controls extends JPanel implements Observer
|
|
|
});
|
|
|
this.playback.setPreferredSize(new Dimension(280, 75));
|
|
|
this.reset = new JButton("End");
|
|
|
- changeButton.addActionListener(new ActionListener()
|
|
|
+ reset.addActionListener(new ActionListener()
|
|
|
{
|
|
|
public void actionPerformed(ActionEvent e)
|
|
|
{
|
|
|
- playback.setValue(playback.getMaximum()));
|
|
|
+ playback.setValue(playback.getMaximum());
|
|
|
}
|
|
|
});
|
|
|
this.clear = new JButton("Start");
|
|
|
- changeButton.addActionListener(new ActionListener()
|
|
|
+ clear.addActionListener(new ActionListener()
|
|
|
{
|
|
|
public void actionPerformed(ActionEvent e)
|
|
|
{
|