Advanced Programming | 17. Event-Driven Programming by Abraham | Learn Smarter
Students

Academic Programs

AI-powered learning for grades 8-12, aligned with major curricula

Professional

Professional Courses

Industry-relevant training in Business, Technology, and Design

Games

Interactive Games

Fun games to boost memory, math, typing, and English skills

17. Event-Driven Programming

17. Event-Driven Programming

Event-Driven Programming (EDP) transforms the interaction model of software applications, shifting from traditional procedural structure to responsiveness dictated by user actions and external events. This paradigm underlies various modern applications, such as GUIs and web platforms, facilitating non-linear programming and event management. Understanding EDP enhances developers' ability to create modular, scalable, and interactive systems that cater to real-time needs.

26 sections

Enroll to start learning

You've not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.

Sections

Navigate through the learning materials and practice exercises.

  1. 17
    Event-Driven Programming

    Event-Driven Programming (EDP) is a paradigm where the flow of the program...

  2. 17.0
    Introduction

    Event-Driven Programming (EDP) is a modern programming paradigm that...

  3. 17.1
    What Is Event-Driven Programming?

    Event-Driven Programming (EDP) is a programming paradigm where the program...

  4. 17.1.1
    Key Components

    Event-Driven Programming consists of key components like events, event...

  5. 17.2
    Core Concepts Of Edp

    This section introduces the core elements of Event-Driven Programming (EDP),...

  6. 17.2.1

    Events are key components in event-driven programming, representing actions...

  7. 17.2.2
    Event Source

    An event source is the component in event-driven programming that generates events.

  8. 17.2.3
    Event Listener (Observer)

    An event listener is a function or method that responds to occurrences...

  9. 17.2.4
    Event Dispatcher

    An Event Dispatcher identifies the source of an event and notifies the...

  10. 17.3
    The Event Loop

    The event loop is a core component of event-driven programming that...

  11. 17.4
    Event Handling Models

    This section covers various event handling models, including polling,...

  12. 17.4.1
    Polling Model

    The Polling Model involves checking for events continuously, but is...

  13. 17.4.2
    Interrupt/callback Model

    The Interrupt/Callback Model utilizes asynchronous callback functions...

  14. 17.4.3
    Delegation Event Model (Used In Java)

    The Delegation Event Model separates event generation from event handling,...

  15. 17.5
    Event-Driven Programming In Gui Frameworks

    This section discusses event-driven programming in GUI frameworks,...

  16. 17.5.1
    Java Swing Example

    This section provides an example of creating a JButton in Java Swing and...

  17. 17.5.2
    Javafx Example

    This section introduces a simple example of event-driven programming using...

  18. 17.5.3
    Python Tkinter Example

    This section introduces a simple example of event-driven programming using...

  19. 17.6
    Event-Driven Programming In Web Development

    This section explains the significance of Event-Driven Programming (EDP)...

  20. 17.7
    Event Queue And Concurrency

    This section discusses how event-driven systems utilize event queues to...

  21. 17.8
    Event-Driven Vs Procedural Programming

    This section compares Event-Driven Programming (EDP) with Procedural...

  22. 17.9
    Advantages Of Event-Driven Programming

    Event-Driven Programming offers several significant advantages, particularly...

  23. 17.10
    Challenges And Pitfalls

    This section discusses the common challenges and pitfalls of Event-Driven...

  24. 17.11
    Event-Driven Architectures In Enterprise Systems

    Event-driven architectures (EDA) are critical for implementing event-driven...

  25. 17.12
    Tools And Frameworks

    The tools and frameworks listed are essential for implementing Event-Driven...

  26. 17.13

    Event-Driven Programming is vital for creating interactive applications,...

What we have learnt

  • Event-Driven Programming allows programs to respond dynamically to user inputs and events.
  • Key components include events, event handlers, event listeners, and the event loop.
  • Challenges such as callback hell and state management require careful consideration.

Key Concepts

-- Event
An action or occurrence that the software recognizes and responds to, such as a mouse click or a key press.
-- Event Handler
A function or method that is executed in response to an event occurring.
-- Event Loop
A fundamental part of event-driven systems that continually checks for and handles events as they occur.
-- Event Listener
A method or object that listens for and responds to specific events.
-- Event Source
The object that generates events, such as a GUI component like a button.

Additional Learning Materials

Supplementary resources to enhance your learning experience.