Doubts in using java.beans.EventHandler

Discussion in 'Java' started by Laax, Jun 30, 2005.

  1. Laax

    Laax Guest

    Hi All,

    I like to replace my event handling code (using inner classes) with
    JDK1.4.x java.beans.EventHandler?

    But I doubt how can I use it in the following case?
    myButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent evt) {
    String x = evt.getAProperty();
    String y = evt.getAnotherProperty();
    // use x and y.
    }
    });

    I want the ActionEvent to be passed to my method...How can I do it?

    Laax.
     
    Laax, Jun 30, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sakthi
    Replies:
    0
    Views:
    362
    Sakthi
    Sep 15, 2004
  2. Sakthi
    Replies:
    0
    Views:
    423
    Sakthi
    Sep 15, 2004
  3. Torsten Schmeissel
    Replies:
    0
    Views:
    422
    Torsten Schmeissel
    Apr 29, 2005
  4. NANY(kshore)
    Replies:
    2
    Views:
    323
  5. thomas
    Replies:
    1
    Views:
    437
    Daniel Pitts
    Feb 14, 2008
Loading...

Share This Page