ActionListener

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Patrick Vanhoof

    ActionListener

    Hi,

    I have a small program to test the ActionListener, but it gives errors.
    Here's part of the code:

    class ButtonListener implements ActionListener {

    public void actionPerformed (ActionEvent e) {

    ....

    Error:
    ActionListener cannot be resolved or is not a valid superinterface
    ActionEvent cannot be resolved (or is not a valid type) for the argument e
    of the method actionPerformed

    What am I missing?

    Thanks!

    Patrick



  • nos

    #2
    Re: ActionListener

    import java.awt.event. *;


    "Patrick Vanhoof" <hoofpatje@hotm ail.com> wrote in message
    news:3faa8a24$0 $29119$ba620e4c @reader3.news.s kynet.be...[color=blue]
    > Hi,
    >
    > I have a small program to test the ActionListener, but it gives errors.
    > Here's part of the code:
    >
    > class ButtonListener implements ActionListener {
    >
    > public void actionPerformed (ActionEvent e) {
    >
    > ...
    >
    > Error:
    > ActionListener cannot be resolved or is not a valid superinterface
    > ActionEvent cannot be resolved (or is not a valid type) for the argument e
    > of the method actionPerformed
    >
    > What am I missing?
    >
    > Thanks!
    >
    > Patrick
    >
    >
    >[/color]


    Comment

    Working...