371150 Simple Java Gui Program - repost

This project was successfully completed by urmate for $20 USD in a day.

Get free quotes for a project like this
Project Budget
$10 - $20 USD
Completed In
1 day
Total Bids
Project Description

Write a program that tests the user’s ability to memorize a sequence of colors. As

shown in the sample session, the program starts off by displaying a dialog box with a

list of colors that are to be memorized – red, white, yellow, green, and blue. The

user then enters the colors one at a time in a text box. If the user makes a mistake,

the program prints a “Sorry” message. If the user correctly enters all the colors, the

program prints a “Congratulations” message. Note that when the sorry or

congratulations message is printed, the window’s original components get cleared


As always, you are required to write elegant code. In particular, you should avoid

hard coding the color values in the interior of your program. You should declare

those values one time in an array at the top of the program.


• Your program should contain a class named Program7.

• Use a simple FlowLayout layout manager scheme.

• Use an inner class for the listener.

Provide a hint button that causes the current color’s first letter to appear in the text

box. For example, since the first color is red, the first hint should be r. The hint

button must cause focus to be put on the text box (i.e., the cursor should appear

within the text box without the user having to click there with the mouse). To cause

focus to be put on a component, use the requestFocusInWindow method. See

Sun’s API documentation for requestFocusInWindow details.

Completed by:
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online