G6DICP - Lecture 20 - PowerPoint PPT Presentation

1 / 4
About This Presentation
Title:

G6DICP - Lecture 20

Description:

G6DICP - Lecture 20 Event Driven Programming Linear Programming Event Driven Programming Event handling in Java When an event occurs - an Event class is automatically ... – PowerPoint PPT presentation

Number of Views:20
Avg rating:3.0/5.0
Slides: 5
Provided by: TimBrai
Category:

less

Transcript and Presenter's Notes

Title: G6DICP - Lecture 20


1
G6DICP - Lecture 20
  • Event Driven Programming

2
Linear Programming
3
Event Driven Programming
Event
Event Handler (listener)
Event
Event
4
Event handling in Java
  • When an event occurs - an Event class is
    automatically instantiated.
  • Different Event subclasses for different events -
    for example
  • MouseEvent
  • WindowEvent
  • A Listener class listens for specific events
  • Listeners must be registered (bound) to the
    source of potential events.
  • Events trigger methods in their listeners.
Write a Comment
User Comments (0)
About PowerShow.com