title: Do not understand Java MouseInfo code in Greenfoot
body: <p>I don't quite get how this bit of code works. I understand the outcome (to add a new object using the mouse coordinates), but can you explain to me how the lines beginning with 'MouseInfo...' and 'addObject..' work? Is a new MouseInfo object created for each click event called 'mouse'?</p>
  
  <pre><code>public void act() 
  {
      // Add your action code here.
      if( Greenfoot.mouseClicked(this)) {
          MouseInfo mouse = Greenfoot.getMouseInfo();
          addObject( new Frog(), mouse.getX(), mouse.getY());
      }
  }  
  </code></pre>