Java tooltip with image in JAR file
问题 I'm using JFreeChart where I customized the chart's tooltip by implementing the XYToolTipGenerator interface. As the generateToolTip() method is supposed to return a String, here is what I did to show images in the tooltip: @Override public String generateToolTip(XYDataset dataset, int series, int item) { (...) return "<html><body><img src=\"file:resources/img/image.png\"></body></html>"; } While this works perfectly when executing directly from my IDE (Eclipse), it obviously fails when being