Java – Topic 30

(Drag & Drop)

 

 

TASK

 

 

QUESTION (CONTINUED)

 

This question is continued from the previous lesson.

 

PART 3

 

Add the drag and drop functionality to your visor.  As long as you click in the square, your visor should follow the mouse until the button is released.

 

PART 4

 

This section is optional as it will not truly affect your final product.  However, you will get more marks if you complete it.

 

Change your visor so that it is a circle instead of a square.  Make the drag and drop functionality work from anywhere inside the circle.