Objectives. In the assignment you will gain experience

Added on - 16 Sep 2019

  • Dissertation


  • 2


  • 207


  • 48


  • 0


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.
You’re reading a preview

To View Complete Document

Become a Desklib Library Member.
Subscribe to our plans

Unlock This Document