Question: Use the JavaFX FXML application template and create a program called ask me. Add a label that contains the instructions. The instructions should say, think

Use the JavaFX FXML application template and create a program called ask me. Add a label that contains the instructions. The instructions should say, think of a question in your mind and press the button for an answer. Next, add a button that displays the message, 'Ask me!' Finally, when the button is pressed, display a random message.

Make sure you have at least four or five messages that can be displayed and use a random number generator to choose a message each time. I estimate this challenge might take about 15 minutes. This estimate is probably a little long, but is the first one in the series and it might take some time debugging. After you're done, check out the solution movie to see how I solved the problem. Good luck!

1- using Java FX)

2- calling FXML code)

3-add a label for instructions)

4- add a button)

5- button text says ask me)

6- random number generator)

7- print a random message to the screen)

8-per random messager with a max of 6 messages)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!