title: Show a System Tray notification or Desktop notification from the web application
body: <p>I have created a web application in Java using J2EE 6.0 that has login functionality. As the user logs in into the application, a timer start at 59:59 (minutes:seconds) and keeps on decreasing until it comes to 3:00. When 3 minutes are left, it displays a <strong>popup</strong> to the user asking to <strong>logout</strong> or <strong>extend their time/session</strong> again back to 59:59.</p>
  
  <p>My question is if user is doing some other work say on outlook or surfing some other thing over the internet in a new window/browser(Firefox,etc.). How can I notify the user that his session/time is going to expire. This application is intended to run only on  Microsoft Windows <strong>Internet Explorer</strong>.</p>
  
  <p>I found these links for displaying desktop notifications but unfortunately my application is specific to run on Internet Explorer only</p>
  
  <p><a href="https://stackoverflow.com/questions/6092885/what-ways-are-out-there-to-display-a-desktop-notification-from-a-web-app">What ways are out there to display a desktop notification from a web app?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/23594620/how-do-stack-overflow-desktop-notifications-work">How do Stack Overflow desktop notifications work?</a></p>
  
  <p><strong>So I cannot use Desktop notifications.</strong></p>
  
  <p>I thought I would create a <strong>swing application</strong> to display the notification popup in the Windows System Tray saying 'Your session is going to expire'. But I am stucked how will it run on the client machine.
  I have heard of something called <strong>Java Web Start</strong>, <strong>AjaxSwing</strong>, etc.
  With <strong>Java Web Start</strong> software, users can launch a Java application by clicking a link in a web page. It requires JRE in the client system. Java Web Start will ask the user to download the <strong>Java plugin</strong> which will download a JRE(if not found in the client's system) which is annoying.</p>
  
  <p><strong>AjaxSwing</strong> will convert the Swing app to HTML, Javascript and CSS so I am not sure how it will come out of a browser to show up a popup in System Tray. I think that will remain stick to the browser.</p>
  
  <p>I searched for blinking the tab option but it is not blinking the tab in the taskbar of the windows.</p>
  
  <p>I read somewhere <strong>Growl for Windows</strong> but I am not sure whether it will be helpful for me or not. Please tell that also.
  Please suggest me how can I notify the user that his session is going to expire. I already know I can notify through the <strong>email</strong>. Please help me with an innovative idea and solution to pursue further.</p>