After compiling this code, I am getting a "cannot find symbol constructor Timer(int,Morning)" on line 17.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Morning extends JFrame
{
private EasySound rooster;
private int time;
/**
* Constructor
*/
public Morning (int time)
{
time = 0;
Timer clock = new Timer(30, this);
clock.start();
}
public Morning()
{
super("Morning");
rooster = new EasySound("roost.wav");
rooster.play();
Container c = getContentPane();
c.setBackground(Color.WHITE);
}
public static void main(String[] args)
{
Morning morning = new Morning();
morning.setSize(300, 150);
morning.setDefaultCloseOperation(EXIT_ON_CLOSE);
morning.setVisible(true);
}
}