from jdk_doc:
===========================
 
class Hyperactive implements HyperlinkListener {
 
 
public void hyperlinkUpdate(HyperlinkEvent e) {
 
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
 
JEditorPane pane = (JEditorPane) e.getSource();
 
if (e instanceof HTMLFrameHyperlinkEvent) {
 
HTMLFrameHyperlinkEvent evt = (HTMLFrameHyperlinkEvent)e;
 
HTMLDocumentdo
c = (HTMLDocument)pane.getDocument();
 
do
c.processHTMLFrameHyperlinkEvent(evt);
 
} else
{
 
try {
 
pane.setPage(e.getURL());
 
} catch (Throwable t) {
 
t.printStackTrace();
 
}
 
}
 
}
 
}
 
}