Question: Create a JavaFX application that meets the following specification: The program initially draws five circles (see Fig. 1). When the user clicks on a circle,
Create a JavaFX application that meets the following specification:
The program initially draws five circles (see Fig. 1).
When the user clicks on a circle, the selected circle should be highlighted (see Fig. 2). It remains highlighted until it is clicked a second time. It is possible to have several objects highlighted at the same time.
When the user drags a circle, the circle should follow the mouse movement and move to a new location where the user releases the mouse (see Fig. 3). The user should not be allowed to drag a circle outside the application window.



Drawing and Event Handling Drawing and Event Handling
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
