JAVA ASSIGNMENTS

 

SOURCE CODE

Welcome Fellow Programmers to Allan Oliva's Web site!

This site contains the current and past homework assignments for CIS 3270(JAVA).  Please let me know how I can make this site better at [email protected]  Now on to new and exciting Stuff!!!!

Current Assignment: Text Scroller Applet with event Processing

The purpose of this homework assignment is to gain familiarity with program animation, advanced graphics, and event processing  in Java and to be able to implement them in your programs.

The following is the applet as well as detailed documentation on how it works.

Event Legend:

   First event:          Move mouse into the applet (background changes color):
                                Move mouse out of applet (original background color is displayed)

                                             While positioned on applet
   Second event:    Hold right mouse button (scrolling suspended)
                                Release right mouse button (scrolling resumed)

   Third event:         Click left mouse button once (fast scroll enabled-"scrolls text fast")
                                Click left mouse button again (slow scroll enabled-"scrolls text slow")

   Fourth event:       Press 's' on the keyboard (sound enabled)
                                Press 's' again or any key (sound off):
                                Please note: To enable sound  the applet must be in focus.
                                                       To gain focus click on the applet.

What does the applet do?

Uses mouse events and key events to interact with the user.
Displays text and uses animation to scroll the text up the applet window. 
Text wraps around the applet window.  After each line of text disappears from the top of the applet window; it is wrapped and displayed again at the bottom of the applet screen.

 

For detailed explanation of how this applet works please take a look at the source code.

 

Previous Assignments:
    Assignment1-First Applet and application  
    Assignment2-Implementation of inheritance in Java
    Assignment3-Drawing Applet
    Assignment4-Text-scroller applet

 

This page was last updated on 10/08/99 by Allan V. Oliva.