title: How to catch mouse event click on jframe
body: <p>I am trying to catch the event when mouse is pressed on any corner of frame. 
  I have already tried every mouse listener, however it doesn't work. Everything works fine when I'm clicking on the pane, but every click on frame (no matter if it's a frame or a menu bar) is ignored. </p>
  
  <p>I know when dragging the frame is finished. Have you got any idea how to solve it?</p>
  
  <p>Component resized doesn't not work for me, because I have to resize it after dragging is finished (mouse button released).</p>