title: How to detect internet connection with SWT browser (or handle server not available)
body: <p>I have a SWT Java application with a SWT Browser that is displayed on startup to display the news page of my website to the user, and also so the user can view "live" help files.</p>
  
  <p>However, I need a way to check if internet is not available so I can display a local, offline copy of the help and welcome pages.</p>
  
  <p>On Mac a dialog pops up if there is no internet, stating:</p>
  
  <p>"Page load failed with error: Could not connect to the server."</p>
  
  <p>I'd like to handle this without the popup going to the user (obviously this is annoying to the user) and so I can switch the page when this happens.</p>
  
  <p>Thanks!</p>