FileDocCategorySizeDatePackage
LinkFollower.javaAPI DocExample461Sat Sep 09 19:55:30 BST 2000None

LinkFollower

public class LinkFollower extends Object implements HyperlinkListener

Fields Summary
private JEditorPane
pane
Constructors Summary
public LinkFollower(JEditorPane pane)

    this.pane = pane;
  
Methods Summary
public voidhyperlinkUpdate(javax.swing.event.HyperlinkEvent evt)

    
    if (evt.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
      try {
        pane.setPage(evt.getURL());        
      }
      catch (Exception e) {        
      } 
    }