title: Print 60 seconds countdown in Java
body: <p>I've searched everywhere for some simple code to print 60 seconds down, say on a JFrame constructor. So when a JFrame is run, the window title will be shown a countdown from 60-0 seconds (which in my case will shutdown). - No need for code to shutdown.</p>
  
  <p>Something on the lines of:</p>
  
  <pre><code>JFrame frame = new JFrame("Window will terminate in: " + java.util.Calendar.SECOND);
  </code></pre>
  
  <p>Of course the code above does not make sense because it's printing the current time second. But you get the idea.</p>