| Interfaces, GUIs, and Applets | CS 161 - Java |
The infinite loop may be hidden away inside an application framework you are using.
Whether hidden or not, those infinite loops look something like the following pseudo code:
while (true) { event = waitForSomethingInterestingToHappen(); callThingThatRegisteredInterest( event ); }
Event Driven Programming is all about writing the methods that are the thingThatRegisteredInterest in handling some event, e.g.,
Question: How is event driven programming different from what we've done so far?
|
jwd |