public void hyperlinkUpdate(HyperlinkEvent e) { if (e!=null && HyperlinkEvent.EventType.ACTIVATED.equals(e.getEventType())){ if (e.getDescription() != null){ Object obj = cjd.parseLink(e.getDescription(), null); if (obj!=null){ cjd.setContent(obj, false); cjd.addToHistory(obj); } else { obj = (e.getURL() == null) ? e.getDescription() : (Object)e.getURL(); cjd.setContent(obj, false); } } } } }
public void hyperlinkUpdate(HyperlinkEvent e) { if (e!=null && HyperlinkEvent.EventType.ACTIVATED.equals(e.getEventType())){ if (e.getDescription() != null){ Object obj = cjd.parseLink(e.getDescription(), null); if (obj!=null){ cjd.setContent(obj, false); cjd.addToHistory(obj); } else { obj = (e.getURL() == null) ? e.getDescription() : (Object)e.getURL(); cjd.setContent(obj, false); } } } } }