Project 1

Introduction

The purpose of this project is to serve as an introduction to building your own Java applets. It will be fairly simple, so as to ease you into using Java. We will build a basic interface to a Gene report generator. (You do not have to make any of the widgets do anything other than display the initial values – ie. there will not be any events necessary for this project)

Background

We have talked about a number of different text widgets available to you in java.  This project will utilize most of them.  You will need to build the interface (exactly as seen below).

 

Example Execution

 (Your program has to look exactly like this

 

Bottom of Form


Algorithms

The only algorithm you will have to deal with in this project is the placement of the widgets.

Implementation Details

  • You must use checkboxes to indicate who possesses a particular trait
  • You must create variables for the following pieces of information:
    • You, Mother, Father variables for the trait being displayed (Checkboxes) 
    • Each image to be displayed (Images)
    • Generate report button (display it only)

You may use additional variables as appropriate if you desire.

  • This program should be implemented using only one class (named geneMachine) that extends Applet
  • The program should display exactly as the Example Output indicates: Show the user the trait image, the trait description, and the 3 checkboxes for each trait,  provide a submit button that then produces the final report.

Project Submission

The project must be turned in electronically by Sunday, September 19 at 11:59 pm. You should turn in a single Java source file called geneMachine.java. Project turnin is similar to lab turnin. Late submissions and fixing incorrect submissions (i.e. submitting the wrong file) will not be accepted. Remember that each submission overwrites all previous submissions. Prior submissions cannot be retrieved. If you are having trouble submitting your files, talk to a TA for help.

(C) 2004, Purdue University. All rights reserved.