How to create an image map using Java Swing?
问题 I need to make an image map using Swing that displays a background image, and then when the mouse hovers over (or clicks) specific hotspots, I need to pop up a 'zoomed-in' image and have it display. I was thinking of extending JPanel to include an image reference and have that drawn thru the paintComponent(g) method. This part I have done so far, and here's the code: public class ImagePanel extends JPanel { private static final long serialVersionUID = 1L; private Image image; public