Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Describe the concepts of messaging, events, and listeners as they relate to deve

ID: 3866948 • Letter: D

Question

Describe the concepts of messaging, events, and listeners as they relate to developing GUI applications within java. As part of your discussion include a description of the role for event handlers. Describe the concepts of messaging, events, and listeners as they relate to developing GUI applications within java. As part of your discussion include a description of the role for event handlers. Describe the concepts of messaging, events, and listeners as they relate to developing GUI applications within java. As part of your discussion include a description of the role for event handlers.

Explanation / Answer

Messaging:

In java messaging is technique that enables communication between two or more systems. With messaging we can get reliable and asynchronous communication. There are two types of messaging models in JMS.

Event Model Overview:
This model is generic and mainly used to build event-handling protocols for application and GUI-related applications. This model is mainly based on EventObjects which are created by event sources and handled by classes.We can difeine different types of events by creating subclasses.But the EventObject class only contains a source Object.

Distributed Events:
In this case we just need to transfer events over a network among distributed agents. For each node it is need to receive messages in the form of events from remote agents.


The Event class:

The listener interface

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote