Hello,
I'm new to
java. Can anyone help me?
on compiling the undergiven code I use to get this error:
"Class ActionEvent not found in void processActionEvent(ActionEvent)
"
import java.awt.AWTEvent;
import java.util.EventObject;
import java.applet.Applet;
import java.awt.*;
public class child extends Applet{
ChildButton b = new ChildButton("TOUCH ME NOT");
}
class ChildButton extends Button{
ChildButton(
String chez){
super(chez);
enableEvents(AWTEvent.ACTION_EVENT_MASK);
}
public void processActionEvent(ActionEvent e){
System.out.println("OUUUCH YOU SCOUNKDRELLLLL!!!");
super.processActionEvent(e);
}
}