Results 1 to 3 of 3

Thread: action listeners

  1. #1
    Join Date
    Feb 2005

    action listeners

    Haven't been able to find an answer for this anywhere...
    is it possible to implement an actionlistener that listens for an event that takes place in another class?

    At the moment I have a class which creates a main window... from that main window the user clicks on a button which creates another window (whilst keeping the main one open). From here i want the main window to do something once a button is clicked on that second window. Have been given a few suggestions regarding abstract classes and threads but i'd rather avoid them if possible.

    Thanks guys and gals

  2. #2
    Join Date
    Dec 2002
    Calgary, Canada
    how if you could have a reference to the parent window in the child and then in the child on an event just use the reference object for parent and do whatever u want to do?


    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

  3. #3
    Join Date
    Feb 2005


    That's what i thought but couldn't seem to get it working - couldn't get the reference to the parent class sorted. I'll have to have a closer look and see if can get the reference set up properly.

    Thanks for quick reply

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center