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.

JXMapViewer: Waypoint Rollover example code side effect/bug?

From:[jdnc-interest@masked-domain]
Sent on:Wed, 07 May 2008 06:58:00 PDT
I'm trying to place a component on a country.    I looked at the sample code that Joshua provided at
http://today.java.net/pub/a/today/2007/11/13/mapping-mashups-with-jxmapviewer.html#waypoint-rollovers

When I tried it, I noticed the following: when the cursor gets close to the island of Java, the label "Java" appears as desired. But before the label appears in the correct location, it also briefly flashes visible east-north-east of that location - maybe for 1/10th or 1/100th of a second. Has anyone else noticed that?

More importantly, can someone provide any suggestions on how I could modify this code to ALWAYS show a component next to a geographic location? I'm not terribly talented when it comes to doing all these transforms between geographic, "world", and "screen" coordinates to determine whether the label should be shown.

Many thanks.
tom
[Message sent by forum member 'tjwolf' (tjwolf)]

http://forums.java.net/jive/thread.jspa?messageID=273138

---------------------------------------------------------------------
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

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