I'm trying to run this program both as an applet and an application, but I'm getting the following error when I try to compile it:
How can I fix this? Below is the code for my program. -Maria
Brian Pipa
Ranch Hand
Joined: Sep 29, 2003
Posts: 299
posted
0
public class calculator extends Applet implements ActionListener{
You say your class implements ActionListener, but you don't have the actionPerformed method. Either add an actionPerformed method to your class or remove "implements ActionListener" from your code From looking at your code, it look slike you do want an ActionListener, so add the actionPerformed method (see the Javadocs for ActionListsener for more info/details) Brian