Search:

Type: Posts; User: pbrockway2

Search: Search took 0.24 seconds.

  1. Replies
    6
    Views
    1,613

    Re: aCTION EVENT WITHOUT ACTIONLISTENER

    Declare x as an instance variable of the Example class not a local variable of the Example constructor.




    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;

    public class...
  2. Replies
    6
    Views
    1,613

    Re: aCTION EVENT WITHOUT ACTIONLISTENER

    Post code. Not the whole thing but showing the button and how you're writing the listener.
  3. Replies
    6
    Views
    1,613

    Re: aCTION EVENT WITHOUT ACTIONLISTENER

    Programs can, but typically don't *make* events - they just happen. If you want to make them, you invoke their constructor, like any other class. This doesn't involve an event listener.

    If that...
Results 1 to 3 of 3