Color Memory



Basic Requirements

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 away.

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 RobertWiddossProg7.

· Use a simple FlowLayout layout manager scheme.

· Use an inner class for the listener.

As always:

· Limit your use of class variables and instance variables – use them only if appropriate.

· Use appropriate modifiers for your methods. The modifiers we’ve discussed are private, public, static, and final.

· Use helping methods if appropriate.

· Mimic the sample session precisely. In particular, note the dialog box’s text, the window’s title, and the window’s text.

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.

Skills: Java

See more: sun documentation java, sample coding in java, color red, simple java box, java blue, away interior, java simple array, blue java, basic java coding, java blue code, session api, memorize sequence colors java program, java memorize sequence colors, memorize, cursor class, simple api java, java simple program example, simple layout interior, sorry mistake, text mouse cursor, simple method java, sun java, mouse method, blue prints interior, list java array

Project ID: #4011382

Awarded to:


Hi, I'd like to do this project please. Kindly check your inbox for my inquiries. Thanks.

$30 USD in 0 days
(211 Reviews)

14 freelancers are bidding on average $44 for this job


JAVA EXPERT ! Please check INBOX

$30 USD in 0 days
(296 Reviews)

Hello Sir, Interested in doing this project. Thanks.

$30 USD in 0 days
(25 Reviews)

ready to do it. Thanks.

$30 USD in 0 days
(78 Reviews)

Hi, I'm interested in your project. Please check your inbox. Thanks.

$45 USD in 0 days
(22 Reviews)

Hi, I already did similar project in my academic course of Java. Can rewrite the code in shortest time and assure you of clean, simple, well documented code. waiting for reply, thanks

$80 USD in 2 days
(18 Reviews)

I have been programming in Java for over 5 years and I have a Computer Science degree. I fully support good practices when it comes to coding, and I guarantee my code will be clear and efficient. The application looks More

$30 USD in 1 day
(10 Reviews)

Very simple. Check you pmb.

$30 USD in 0 days
(18 Reviews)

Let's get started !!

$30 USD in 0 days
(8 Reviews)

I can do this task, ready to start work now.

$40 USD in 1 day
(3 Reviews)

Im an experienced JAVA programmer.Expect exemplary and timely delivered work from me.

$40 USD in 0 days
(4 Reviews)

We are freelance software developers. If you contact me I can give a quote for your project and we can discuss the details. <b><i>Removed by Admin</i></b>

$140 USD in 1 day
(0 Reviews)

I have much experience in Java as academics. I have bachelor degree and pursuing masters I am very good in Java and application looks simple to develop

$30 USD in 2 days
(0 Reviews)

I would like to do very much this cute project :) Please, give me a chance, although I am new here in Freelancer, I have near 20 years programming experience, including more than 12 in Java language.

$30 USD in 1 day
(0 Reviews)