netlogo.gif (10904 bytes)

Java Project 1:  Green Sheet Applet

Implement the "Green Sheet" applet in its full functionality.   We want to make the Green Sheet active.   That is, allow the user to enter data, send the data to a central server, and save it in an organized way in a file.  Here is figure of Architecture.

You should concentrate on functionality and ease of use.  This means an intuitive interface, and data storage that is easy to interpret.  The user interface should be your applet.  The applet should open a connection back to the server from which it came.  The data will be sent over this socket connection to the server that will store it in an appropriately named file.  Therfore, you are implementing a client applet and a server.  Try to maintain flexibility and modularity in your code (for example, don't hardcode the name of the server).

Client/Server applications can be run from any directory on a computer.   Applets, however, need to be an WWW accessible directory in order to access them over the internet.  On Unix or Linux systems, this directory would be the www directory in your home directory.  On Windows 32-bit systems, the InetPub/wwwroot directory will work if available.  This directory is created on NT Server systems and, I think, will work with peer or personal web services.  On the EELAB cluster in Rm. 229, I have created the "D:\InetPub\wwwroot" directory for your testing.  Note this is a common directory and everyone has access. 

You might also want to check out the QuoteClientApplet on page 728 in the text.  This applet does things similar to what yours shoudl do, except it uses UDP, instead of TCP.

Follow the criteria given on the Syllabus for your report.  You will owe me a report, a disk with your byte code, source code, and html file.  You will each do a 5 minute demo for me of your code.  I will set a schedule on Tues. 11/2. 

Here is a quick example I did that illustrates the basic ideas.  This code can be taken and modified to do what you want. Server source and applet source .