home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2005 June / PCpro_2005_06.ISO / files / opensource / tvbrowser / TvBrowser_1.0.exe / plugins / ProgramInfo.jar / programinfo / ProgramInfoDialog$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  2004-09-19  |  1.1 KB  |  27 lines

  1. package programinfo;
  2.  
  3. import java.net.URL;
  4. import javax.swing.event.HyperlinkEvent;
  5. import javax.swing.event.HyperlinkListener;
  6. import javax.swing.event.HyperlinkEvent.EventType;
  7. import util.ui.BrowserLauncher;
  8.  
  9. class ProgramInfoDialog$1 implements HyperlinkListener {
  10.    // $FF: synthetic field
  11.    private final ProgramInfoDialog this$0;
  12.  
  13.    ProgramInfoDialog$1(ProgramInfoDialog this$0) {
  14.       this.this$0 = this$0;
  15.    }
  16.  
  17.    public void hyperlinkUpdate(HyperlinkEvent evt) {
  18.       if (evt.getEventType() == EventType.ACTIVATED) {
  19.          URL url = evt.getURL();
  20.          if (url != null) {
  21.             BrowserLauncher.openURL(url.toString());
  22.          }
  23.       }
  24.  
  25.    }
  26. }
  27.