P
picaza
hi,
it is probably me but i copied the example from the tiger book and i get
an error. the info about the book is below along with the error msg.
any help?
tia,
peter
+++++++++++++++++++++++++++++++
page 48 june 2002 tiger book
javac HelloJava3.java
HelloJava3.java:40: addActionListener(java.awt.event.ActionListener) in
javax.swing.AbstractButton cannot be applied to (HelloComponent3)
theButton.addActionListener( this);
^
++++++++++++++++++++++++++++++++++++++++++
it is probably me but i copied the example from the tiger book and i get
an error. the info about the book is below along with the error msg.
any help?
tia,
peter
+++++++++++++++++++++++++++++++
page 48 june 2002 tiger book
javac HelloJava3.java
HelloJava3.java:40: addActionListener(java.awt.event.ActionListener) in
javax.swing.AbstractButton cannot be applied to (HelloComponent3)
theButton.addActionListener( this);
^
++++++++++++++++++++++++++++++++++++++++++