Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA Hangman game with GUI: Assistance I'm very, very rusty with Java, and I would like to know how to create a program using the

JAVA Hangman game with GUI: Assistance

I'm very, very rusty with Java, and I would like to know how to create a program using the interfaces I have posted.

This can be very, very basic. It does not need to make drawings or end with a game over screen

The end user will be presented with an initual GUI screen, asking them to start a game of Hangman. After they progress to the actual gameplay screen by pressing the start button, they are presented with a random word, chosen by going through a 1 dimensional array of strings.

After clicking on a letter in the GUI, it will loop through the array, and fill in the blank with letters the user guesses.

Clicking on the Stop Game button will send them back to the previous screen. There does not need to be

I haven't had practice with java for a couple years. Like I said, I'm extremely rusty.

EDIT: The user can attempt to guess letters indefinitely.

The random word will be determined by randomly selecting a value in an array: for instance, the choice of {"Spiderman", "Batman", "Superman"} will be selected using a random function.

I would like to use swing for the GUI. If you wouldn't mind, could you provide the code for the GUI as well?

I was going to attempt to create the GUI using a drag and drop method in Netbeans, but as I have never done that before, I think having the entire code would be beneficial.

image text in transcribedimage text in transcribedimage text in transcribed

Basic Application Example File Help Welcome to HangmanSCREEN - 1 L M N 0 Start Game . Go to screen 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

2nd Edition

1597499471, 978-1597499477

More Books

Students also viewed these Databases questions

Question

2. What efforts are countries making to reverse the brain drain?

Answered: 1 week ago