title: How to minimize the application to system tray on close from ApplicationWindow object?
body: <p>I am in process of compiling an open source backup application. I want the application not to be closed using X nor any key combination such as Alt+F4 in Windows. What I prefer would be minimizing the application to system tray in such cases.</p>
  
  <p>I am new to Java and so far what I have tried are:</p>
  
  <ul>
  <li><p>Setting the shell style: I can get the shell using getShell method of ApplicationWindow instance, which I can only manipulate to show no buttons at all (SWT.TITLE) or all of the buttons. No luck only hiding the X using  setShellStyle(getShellStyle() &amp; ~SWT.CLOSE);</p></li>
  <li><p>Getting the JFrame list using (getFrames) method, and trying to manipulate the item at 0. However I could not find the setDefaultCloseOperation method of the object, which seems to resolve my minimizing to tray problem.</p></li>
  <li><p>No luck getting the JFrame instance from ApplicationWindow neither, so I couldn't use the setDefaultCloseOperation method.</p></li>
  </ul>