Is this your first time here? SwingWiki is a Java Swing Developer community site with an big archive of Swing-related usenet groups and mailing lists, but also tips, tricks and articles and book reviews written by your colleagues from around the world. If you came here through a search engine and did not find what you were looking for, make sure to check the wiki table of contents.

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]
Found what you were looking for? If not - continue at Wiki Index

Other messages in this topic

SenderDate sentSubject
[jdnc-interest@masked-domain]Wed, 30 Apr 2008 10:22:58 PDTRe: JXMapViewer: is it possible to put components on top of it?
[jdnc-interest@masked-domain]Wed, 30 Apr 2008 10:03:21 PDTRe: JXMapViewer: is it possible to put components on top of it?
Joshua Marinacci [joshua@masked-domain]Tue, 29 Apr 2008 19:19:43 -0700Re: JXMapViewer: is it possible to put components on top of it?
[jdnc-interest@masked-domain]Tue, 29 Apr 2008 19:25:34 PDTJXMapViewer: is it possible to put components on top of it?

 
Recent changes | RSS changes | Table of contents | News Archive | Terms And Conditions | Register | The Quest For Software++| Ruby Resources
FitNesse Resources