– Java automatically starts a separate thread to look for events, and when a mouse event occurs, that thread automatically calls the appropriate methods in your handler • Your handler must have all the MouseListener methods
Event Handling by thenewboston ← Video Lecture 52 of 87 ... part of the series Beginner Java Programming Tutorials by TheNewBoston by Prof. , ...
Changing the state of an object is known as an event. For example, click on button, dragging mouse etc. The java.awt.event package provides many event classes and Listener interfaces for event handling.
Post a Comment:
Showing 0 Comments: