title: Drawing over screen in Java
body: <p>I want to create an helper application in Java.. which behaves like: whenever called through a global shortcut, it can draw some text on the screen (not onto its own application window, but on top of the screen).</p>
  
  <p>A similar post is <a href="https://stackoverflow.com/questions/3081204/draw-over-screen-with-quartz">here</a>, but I want to achieve this in Java.</p>
  
  <p>When I search something like "java draw over screen", I can only get lots of tutorials about Java2D.</p>
  
  <p>I want to check: 1) is it possible to draw over other applications in Java? 2) If not possible, is there any alternatives in Mac / Ubuntu?</p>
  
  <p>Thanks a lot.</p>
  
  <p>(Side note: I know java don't have the global shortcut support. I'm trying other methods to solve that problem, non-related here)</p>