Mouse and Keyboard Events
When you click on the mouse or move it or press a key, a series of events occur. Java has defined some classes which allow you to detect that an event has occurred and to take some action in response to it. You can choose which events you want to listen for and which you want to ignore.
KeywordsMouse Button Mouse Cursor Printable Character Public Class Mouse Position
Unable to display preview. Download preview PDF.