Objectives. In the assignment you will gain experience

Added on - Sep 2019

Trusted by 2+ million users,
1000+ happy students everyday
Showing pages 1 to 1 of 2 pages
ObjectivesIn the assignment you will gain experience with the following:SwingEvent handling in SwingSwing TimersIn this assignment you will create an application where the turtle follows the mouse pointerImportant Note: Be sure to add the mouse listeners to the EndWorld directly NOT the frame!Here is the beginning of the UML class diagram that you must implement.Omitted are other classes(anonymous or otherwise) for event handling.HintsThere are 2 different interfaces you will need for handling mouse events.1.As noted above you need to have the turtle start/stop moving based on1.Whether it is already at the position of the mouse2.If the mouse pointer is in the drawing area.This latter one can be handled by usingthePointobject that theTurtleMouseFollowerhas.In my implementation I initially setit tonulland reset it tonullwhen the mouse exits the drawing area.
Desklib Logo
You are reading a preview
Upload your documents to download or

Become a Desklib member to get access