wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes pop up window for OSM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "pop up window for OSM" Watch "pop up window for OSM" New topic
Author

pop up window for OSM

partha phukan
Ranch Hand

Joined: Mar 13, 2011
Posts: 31
hi everyone....! sorry to say but i need some help from you. If you guide me then i will be very helpful to you. Actually i am stuck at the point of displaying pop up window for open street map. I have been searching in the google but in vain.i am trying for more than a week. Still trying. If you can give me some useful link or suggestion then i would be very grateful to you. I am using java swing and i displayed open street map in a JPanel by going through the links and taking help....

http://today.java.net/pub/a/today/2007/11/13/mapping-mashups-with-jxmapviewer.html

http://today.java.net/pub/a/today/2007/10/30/building-maps-into-swing-app-with-jxmapviewer.html

Now i need to use pop up window. Any help from you will highly be appreciated...... Thanks in advance....

Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

You need to be more specific about your requirement. From the API, JKMapViewer inherits from Component, so the procedure for showing a popup should be the same as for any Component. Read the API for PopupFactory and Popup for more information.

luck, db
There are no new questions, but there may be new answers.
partha phukan
Ranch Hand

Joined: Mar 13, 2011
Posts: 31
Thank you for your reply. Actually i need to show some popup window in some particular locations of the map based according to latitude and longitude and in that popup window i need to show some weather parameters like temperature, rainfall. Please guide me i could not able to find any way to proceed further.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

For that you can use a JWindow owned by the JFrame, with a JLabel or two added to it -- or maybe you want a JToolTip? I think you need to experiment with these approaches (and any other that come to mind) and get back when you have a more specific question.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pop up window for OSM
 
Similar Threads
Google Maps API
is it possible to display google maps in java swing application
Build large Swing application?
GIS in Java
how to perform mouse listener for an open street map