Answered step by step
Verified Expert Solution
Link Copied!

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 2(35 marks)
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 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 3 forms of input, implement the 3 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.
image text in transcribed

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

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions

Question

8. Satyam Computer Services Limited

Answered: 1 week ago