Question: Write a java program to draw a rectangle and then allow the user to grab a corner of the polygon and drag it. Each corner
Write a java program to draw a rectangle and then allow the user to grab a corner of the polygon and drag it. Each corner should be draggable. As a point gets dragged, repeatedly draw and erase the two edges of the polygon that are affected to make it look like the polygon is being reshaped. When the user releases the point, draw the final polygon.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
