Lecture and Lab 4
Mouse Handling and Event-driven programming in Java
The instructions for doing the exercises are identical with what we've been doing so far. The exercises are
Today, you will do all the exercises involving Mouse events: 12-MouseClick, up to 16-Template.
Along the way, you learn how to handle mouse clicks.
At the end of these two weeks of basic Java exercises, you should know:
and be ready to use this knowledge for your current homework.
- How to create a basic applet
- How to create a simple graphical user-interface (GUI) containing buttons, labels, textfields, text.
- How to handle mouse events: press, release and drag.
These exercises are part of your next homework. They must be completed by Monday night, before next class, to give you time to ask
questions and work on
the creative part of the homework.