Question: Write a JavaFX program that accepts 3 different forms of input: A button pressed within the program window A mouse click somewhere within the program
Write a JavaFX program that accepts different forms of input:
A button pressed within the program window
A mouse click somewhere within the program window
A key pressed while the program is open
Note: make sure you notify the user of what key to press or mouse button to click.
For the forms of input, implement the different ways to write handlers as discussed in class your choice for which is which Display a message somewhere within the scene when each of the inputs occur. Each message should describe the input type and handler method. Each message Text should be of a different size, font, and colour.
Implement one other input possibility which plays a simple animation somewhere on the screen. The type of animation and content is up to you. Do not directly copy the examples from class.
Output:
No output example here, but you will still need to provide screenshots of your own window output. The organization is up to you try to be creative. If you use any external images for the animation, you must also submit those and cite the source.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
