There is a question in this textbook I am reading:
" How would you determine if the mouse is pointing to a particular object _ball which is declared to be an Ellipse2D.Double in a subclass of JPanel. the MouseEvent object is referenced by the parameted named "e". "
I am confused as to what it means by "mouse is pointing" does that mean the mouse is being clicked on the _ball? if that is the case, wouldn't the answer be to implement the java.awt.event.MouseListener on the _ball object and use the java.awt.event.MouseEvent class somehow?