title: Finding SSID of a wireless network with Java
body: <p>We're doing a project coded in Java (compiled for JRE 1.6) and need some help with
  a little but apparently complicated feature:
  We want to do a certain action when a specific wireless network is connected e.g. when the connected SSID=="myNetworkAtHome" or similar.</p>
  
  <p>After looking through this site, google and the Java documentation we have come a little closer.
  After looking at the code here:
  <a href="http://download.oracle.com/javase/tutorial/networking/nifs/retrieving.html" rel="nofollow noreferrer">http://download.oracle.com/javase/tutorial/networking/nifs/retrieving.html</a></p>
  
  <p>It seems we were getting close but it hits a deadend, all the interfaces seems to be connected to "net0" through "net13" (on my laptop that is.)
  And we're unable to get the SSID out of any interface at all. I do realise the code in the example is only giving the interface names and not connected networks, but it doesn't seem to offer a way of fetching the connected network information.</p>
  
  <p>Any help on this would be extremely helpfull!</p>