Java Swing Programming Question: Download Java Swing Programming PDF

What is an event and what are the models available for event handling?

Tweet Share WhatsApp

Answer:

Changing the state of an object is called an event. An event is an event object that describes a state of change. In other words, event occurs when an action is generated, like pressing a key on keyboard, clicking mouse, etc. There different types of models for handling events are event-inheritance model and event-delegation model

Download Java Swing Programming PDF Read All 26 Java Swing Programming Questions
Previous QuestionNext Question
Which method is used for setting security in applets?What are the advantages of the event-delegation model over the event-inheritance model?