
|
|
Java
Programming Notes: A Java Applet demonstrates
the use of the mouse-Drag,
mouse-Down and
mouse-Up events
for positioning of items on a background scene.
The Java
program keeps track of the images on 7 different layers, (background scene
plus 6 small objects). When a small object is selected, it is moved
to the frontmost layer, and any objects which were previously layered on
top of it are moved back one layer.
Note: When I wrote and tested this Applet using the Applet Viewer provided with the Java Development Kit from Sun Microsystems, the mouse responses were immediate, but when I view this page on my computer using the popular Web Browsers, the Java interpreters which are provided with these Browsers seem to suffer from performance problems. |