PPT Slide
Debugging re: Event Handlers
So, in debugging event-driven programs written
with Java, the steps are:
- Be sure you're handling the appropriate events:
Map out on paper what events get thrown from what components, and what class(es) handle them.
- Handle the events appropriately: This is the kind of debugging you're already familiar with: Once you're sure the appropriate events
are getting handled, the rest is being sure
the event-handling code (and the code that
the event handlers call) work.