Threesuns

Email the Instructor

Contact

All Semesters

Semesters

All Courses

Courses

2009Spring

01.12.09 - 05.08.09

Introduction to Java Programming

CSCI2133

Monday Wednesday
04:00 PM - 05:20 PM

Scrolling Marquee

Lab06

Objective: To use Multithreading and Exception handling in a Java application

pastdue

Submit Your Solution

Lab06

Request a Copy of your Solution

Lab06

Requirements

Comments placed in each source code file.5 pts
Files put into JAR format (needs to be executable)5 pts
Application source and class files included.5 pts
JAR file executes application correctly10 pts
Program compiles and executes without errors5 pts
Program layout is reasonably similar to example20 pts
Marquee runs on its own thread30 pts
GUI functions properly20 pts
Total100 pts

Instructions

Part 1:

Create a GUI component that will display a moving text marquee. The component should store a text message that it will scroll from right to left at variable speeds with variable colors. The component should run on its own thread separate from the main thread. The class should contain the following public methods in addition to any other methods that may be needed:
  • At least one Constructor
  • setMessage - sets message to be scrolled
  • getMessage - gets message to be scrolled
  • setSpeed - sets the scroll speed
  • getSpeed - gets the scroll speed
  • start - starts the scrolling
  • stop - stops the scrolling

Part 2:

Create a Java application that uses the Marquee component

When the program is executed it will display a marquee component along with other components that will allow the marquee to be controlled. The application should contain a JTextField to allow the user to enter a message to be displayed on the marquee component, a JSlider to allow the scroll speed to be changed, a start button to start the scrolling of the message and a stop button to stop it, and two JComboBox components to allow the user to select the background color and the text color from a list of the thirteen default colors in the Java.awt.Color class.

Get Java!

The program should catch any possible exceptions that might occur.