Fun Java Applets

Below are some Java applets which I wrote:

     

Program Title

Description
   
SlideShow.java
June 1997
The SlideShow program was developed to show a series of pictures and allow the viewer to scroll forward and backward through the slides. The code for this program is compact and loads quickly which leaves more bandwidth for downloading the pictures. The picture sizes were set to allow good viewing size without requiring a long download time.  (Example is the SlideShow for my dog 'Lumpy'). See the source code here.

 

Count.java
July 1997
A very simple applet which uses text recognition methods to count characters, white space, punctuation, etc. While very simple, this applet demonstrates the use of robust character recognition methods.

 

MarsRocks.java
August 1997

 

The multiclass MarsRocks applet simulates the collection of Martian rocks by a MarsRover on a 15 by 15 grid which represents the surface of Mars. The grid allows movement in one eight directions. This program also implements 'wrap around' mapping (2D array), whereby the rover may move to an opposite grid location after 'running off' the side of the map. The program includes a random feature to add rocks, which the rover collects, and wormholes. The wormholes warp the rover to an unoccupied random location on the map and erase any accumulated points for rocks picked up. In addition, the user may choose to use a cheat feature to make the wormholes visible. The program also includes a menacing Martian who randomly moves around the grid. If the Martian should land on the rover, the rover is destroyed, leaving the player with the option of starting a new game.  When a new game is started, a new grid with new rocks and new wormholes is created. The Martian starts in a random location, and the rover is in its preset starting point at the center of the grid.

 

JDBC.java
September 1997
This applet connects to an mSQL database using JDBC. The database contains patient data (sample data, of course) and hospital services data. The applet allows for the addition of new patients (to the database), deletion, record finding capability, and SQL database queries. Patients in the "hospital" can be charged for services and a report can be printed which automatically calculates the current balance on the patients account. Additionally, the applet formats the returned data into neat rows and columns. Further functionality is easily implemented based on the existing methods and database interactivity. (NB: the server which holds the mSQL database may  not be available for connection to the database). To see the source code, click  here.