371150 Simple Java Gui Program - repost


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.

Skills: Anything Goes, Java

See more: sun documentation java, sample coding in java, simple text layout, r program, documentation java, simple java box, java blue, java gui sample code, java text message, away interior, java simple array, gui layout, simple layout program, blue java, simple program layout, java blue code, java code sample, simple makes, java simple class, simple array program, memorize sequence colors java program, java memorize sequence colors, memorize, text gui java, gui example

Project ID: #5503855

Awarded to:


HI Contact me for an efficient, well documented and perfect solution and development of your project. I ensure quality work with always on time delivery of project and dedicated support and follow up. Thanks More

$20 USD in 1 day
(75 Reviews)

5 freelancers are bidding on average $23 for this job


Hi, I would like to do this project please. Let me know if you are interested so I can have further details. Thanks.

$25 USD in 0 days
(281 Reviews)

Hello stillstuckhere, I'm Asem Athwari, Java Teacher at Taiz University. I'm intestine and ready to help you in your assignment. If you have any questions, Feel free to contact me. Best regards, Clinux.

$35 USD in 1 day
(2 Reviews)

really easy task i can have it done in 1 day for you sir, Im willing to help you with any software you need im very professional and a great java developer

$20 USD in 1 day
(0 Reviews)

I am an Oracle certified Java programmer. Currently I am following a BSc degree in Machine Intelligence and Robotics

$15 USD in 1 day
(0 Reviews)