在iReport中增加hyperLink,点击之后没有反应;需要重新写一遍net.sf.jasperreports.view.JRViewer;
修改其中的gotoHyperlink方法;
case JRHyperlink.HYPERLINK_TYPE_REFERENCE: {
if (isOnlyHyperlinkListener()) {
System.out.println("Hyperlink reference : "
+ hyperlink.getHyperlinkReference());
try {
Runtime.getRuntime().exec(
"explorer " + hyperlink.getHyperlinkReference());
} catch (Exception e) {
e.printStackTrace();
}
}
break;
}