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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started