In your posting there is missing something in the error report. You should show some more effort when posting some code. At least, if you copy and paste, do it completely.
Nevertheless: your class implements ActionListener, but doesn't have a method
For your indentations (tabs and spacing at the beginning of a line) to be displayed properly on the ranch, use the - button before you post.
There are some more errors in your code.
Yours, Bu.
all events occur in real time
Remko Strating
Ranch Hand
Joined: Dec 28, 2006
Posts: 893
posted
0
You need to implement the method actionPerformed(ActionEvent e) because you state that you implement the interface ActionListener.
In your code you implement the method actionperformed. So change the p into a P