Question
[JAVAFX] Write a JavaFX program called ShapePopper You will use JavaFX mouse event handler to create objects (circles and rectangles) on a canvas (your JavaFX
[JAVAFX]
Write a JavaFX program called ShapePopper
You will use JavaFX mouse event handler to create objects (circles and rectangles) on a canvas (your JavaFX stage) using your mouse. You will then extend your code to implement the composite design pattern which dragging a container moves all circles within it.
Functionality Requirements
1)Your program shall allow user to add black circles by primary click action and add randomly
colored rectangles by right clicking.
2)Your program shall allow user to drag a black circle into a rectangular container.
3)Your program shall changes the color of the circle to its containers color once it is placed within
a container.
4)Your program shall
drag all circles within a container with it if the container is dragged.
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