Question: Write a JavaFX code that have the following interface with 4 buttons (EnLafge, Shrink, rectangle, circle) If you press on reclangle button a rectangle with
Write a JavaFX code that have the following interface with 4 buttons (EnLafge, Shrink, rectangle, circle) If you press on reclangle button a rectangle with red color, black border, Height of 50 . and Width of 20 must appear at the center and if you pressed on circle button a white circle, black border and Radius of 30 must appear at the center as shown in following figures On each press on Enlarge button it will increase the radius by 2 (in case if there is a cirdein center) And increase height and width by 2 (in case if there is a rectangle in center) and Shrink button will shrink rectangle or circle with same previous values as shown in figures
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
