kram044
03-06-2006, 12:36 PM
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
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