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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!