void (HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { final String href = e.getDescription(); final Runnable act = href2linkAction.get(href); if (act != null) act.run(); } }