title: Get name of clicked application/active window
body: <p>Is there any way in Java where if I run my Java app in background and whenever I click on some App, I can get the name of it.</p>
  
  <p>This Java program should run in background without the knowledge of the user and will send the app name to a remote server.</p>