Re: JXMapViewer: is it possible to put components on top of it?
| From:[jdnc-interest@masked-domain] |
| Sent on:Tue, 06 May 2008 14:00:47 PDT |
| In reply to:<F2A54A2D-250A-4885-910F-F2D59350E0A3@marinacci.org> |
Hi again,
A small question (probably due to my ignorance): the example that's given shows the "Java" label when the cursor hovers near the island of Java:
...
if(converted_gp_pt.distance(e.getPoint()) < 10) {
hoverLabel.setLocation(converted_gp_pt);
hoverLabel.setVisible(true);
} else {
hoverLabel.setVisible(false);
}
whereas I want to always show the component next to that island. But if I just remove the conditional from the above code, the label "Java" shows whether the map is showing the island or not. It also doesn't move as the map is panned/zoomed. Any idea what I need to do?
[Message sent by forum member 'tjwolf' (tjwolf)]
http://forums.java.net/jive/thread.jspa?messageID=273039
---------------------------------------------------------------------
To unsubscribe, e-mail: [jdnc-unsubscribe@masked-domain]
For additional commands, e-mail: [jdnc-help@masked-domain]
Other messages in this topic