Java compilation error message.
- From: ri.johnson@xxxxxxxx
- Date: 28 Nov 2005 13:23:51 -0800
Attempting to write my first java program that accepts user input.
When I add the listner events to the code it will not compile. Below
is the code along with the error message:
Code:
import javax.swing.*;
import java.awt.event.*;
public class LottoEvent implements ItemListener, ActionListener,
Runnable {
}
Compilation Error message:
javac LottoEvent.Java: LottoEvent is not abstract and does not override
abstract method itemStateChanged(java.awt.event.ItemEvent) in
java.awt.event.ItemListener public class LottoEvent implements
ItemListener, ActionListener, Runnable
^
1 error
Any ideas on how to fix it would be appreciated.
.
- Follow-Ups:
- Re: Java compilation error message.
- From: tip
- Re: Java compilation error message.
- From: Roedy Green
- Re: Java compilation error message.
- From: Jeffrey Spoon
- Re: Java compilation error message.
- Prev by Date: Re: HashMap with primitive int key
- Next by Date: Re: (help plz) help me in downloading weblogic latest version
- Previous by thread: HashMap with primitive int key
- Next by thread: Re: Java compilation error message.
- Index(es):