title: Java: Detect when user clicks outside the window boundries
body: <p>I am working on design for a screen video capture program in Java I already have what it takes to create the screenshots and save them with <a href="https://stackoverflow.com/questions/5250050/java-capture-video-of-whats-on-the-screen">my previous question</a>. Now as an added bonus I would like to know when the user clicks so I can add a visual indicator that makes it clear where the user clicked and that it was not just a mouseover.</p>