title: How do I lock the mouse inside a JFrame
body: <p>I would like to lock the mouse inside a JFrame.  That is, the mouse can not leave the contents of the JFrame (unless the user hits escape, alt-tab, or the window otherwise looses focus).  Ideas?</p>
  
  <p>Thanks!</p>