Muffinking
2003.10.13, 05:17 PM
Does anyone know how to implement an event handler in java?
I need to update a JFrame when my simulation is going... so I need to update the window as often as possible..
my main class implemets the ActionListener class.. but i have never used events in Java... I don't really know how they work.. from what I have seen it looks like they run on strings passed to the event handler...
I need to know how to pass an idle event to my own app..
any thoughts on this?
my assignment is due tomorrow and I have yet to get to the actual assignment part... this damn Swing crap... grrr..
Hank-
I need to update a JFrame when my simulation is going... so I need to update the window as often as possible..
my main class implemets the ActionListener class.. but i have never used events in Java... I don't really know how they work.. from what I have seen it looks like they run on strings passed to the event handler...
I need to know how to pass an idle event to my own app..
any thoughts on this?
my assignment is due tomorrow and I have yet to get to the actual assignment part... this damn Swing crap... grrr..
Hank-