The Parkland- Java
 Please be patient.   It may take time to download the images.
 
Choose the birds and animals from the left panel, and then either mouse-drag or click to place them in the park scene.
You can reposition the birds and animals as many times as you want, and you can remove them from the scene by dragging them behind the left panel.
 
Special Note: Allow time for the Java program to respond to the Mouse commands.  When choosing a different bird or animal, (that is, after the initial download and placement in the scene), you may need to pause the Mouse over the new selection before dragging, in order to avoid respositioning the previous selection.  

 
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. 
  
This program uses double-buffering to avoid on-screen flicker when the image is being redrawn. An updated image is first prepared in a background buffer and the Graphics update method is overridden to paint from this buffer when a repaint is requested. 
  
Java makes no distinction between Left and Right Mouse Buttons, and either the Left or Right Mouse Button can be pressed for a Mouse-Click event.  (Note that the Mouse on a Macintosh computer has only one Button, whereas those on PC's have both Left and Right Buttons, and sometimes a Center Button as well.) 

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.

 
     
 
The Dodo Bird, porcupine, tortoise and frog were drawn by Margaret Brown.
 The park scene is a composite of images from Sierra King's Quest
 
Copyright © 1997 Margaret Brown
 
 
    WEBBITS Home Page    Back to WEBBITS First Java Page