@Override
        public void mouseClicked(final MouseEvent event) {
          final UrlLabel self = (UrlLabel) event.getSource();

          if (self.url == null) {
            return;
          }

          try {
            Desktop.getDesktop().browse(self.url.toURI());
          } catch (final URISyntaxException e) {
            // TODO: This should be properly logged
            System.out.println(e);
          } catch (final IOException e) {
            // TODO: This should be properly logged
            System.out.println(e);
          }
        }
Label class that can be used to launch URLs from Java.

<p>Taken from http://forum.java.sun.com/thread.jspa?threadID=613854&messageID=9959263
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/UrlLabel/UrlLabel.java