the error
[error]
europound is not abstract and does not override abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener
public class europound extends Applet implements ActionListener
[/error]
Should what is in the code so far not compile?
/Euro to Pound conversion CA
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
public class europound extends Applet implements ActionListener
{
// Declare fields and Buttons
TextField Count;
TextField Price;
Button NextPrice;
Button Convert;
Button Display;
// Setup the GUI for teh user
public void init()
{
//create first textfield
Count = new TextField(4);
add (Count );
// create Button to add count
NextPrice = new Button ( "Next Price" );
add(NextPrice);
NextPrice.addActionListener ( this );
Convert = new Button ( "Convert Price" );
add(Convert);
Convert.addActionListener ( this );
Display = new Button ( "Conversion" );
add(Convert);
Display.addActionListener ( this );
}
}
Thanks
Charles

New Topic/Question
Reply




MultiQuote





|