209.31.210.86 writes:
I just starting using Java, and the problem I'm facing ragards using imported classes. I do place a line "import java.awt.event.* ;" in the beginning of the code. But when I'm trying to use "implement ActionListener" the compiler gives me an error message (class Action Listener not found in a class I'am currently creating. Well ActionListener suppose to be imported from event class of course it is not in a class I'm currently creating. What am I doing wrong?
Nick
195.249.52.43 writes:
Hi,
You can try to import java.awt.event.*;
you can great a button and add ActionListener to it like that :
Button1 = new Button("My Button");
Button1.addActionListener(this);
add(Button1);
CCQ