dcsimg
June 24, 2018
Hot Topics:

How Does Java Event Handling Work? Think Wedding Gifts

  • September 10, 2010
  • By Developer.com Staff
  • Send Email »
  • More Articles »

A good understanding of the Java event-handling mechanism is essential for any Java programmer. Event-based Java programming isn't limited just to GUI Swing programs; you also will find it in applications that use Java technologies such as servlets and message-driven beans.

In his JavaBoutique.com tutorial, Gurunath Kalamadi breaks down the event-handling concept with concise explanations and practical examples. He really brings the lesson home with a novel analogy for event handling: a group of friends deciding what gifts to bring to their friend's wedding.

Consider four friends: A, B, C and D. Suppose the event is A is getting married. A's friends, B, C and D, want to respond to this event. The response protocol is to attend the wedding and bring a gift for A. They all must adhere to the response protocol, but they are free to choose the gift they bring.

Read the entire tutorial at Java Boutique:
Java Programming Basics: Event Handling






Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

By submitting your information, you agree that developer.com may send you developer offers via email, phone and text message, as well as email offers about other products and services that developer believes may be of interest to you. developer will process your information in accordance with the Quinstreet Privacy Policy.

Sitemap

×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date