Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 2 ( 3 5 marks ) Write a JavaFX program that accepts 3 different forms of input: A button pressed within the program window
Question marks
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
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