Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is it possible to give info window in Open Street Maps in Java swing application

 
sum prit
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone i am using a swing application where i displayed Open Street Maps. Now i need to display info window in the OSM. Could anyone help me, so that i can able to give info window in the OSM. is it possible to give info window in OSM.

Did i need to use plugins for that. I am using eclipse IDE. Again is it possible to display google maps in java swing application. i have searched in google but still not sure whether i can able to use google maps. Please give me some suggestion.

Thanks in advance.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This very recent thread should be interesting: http://www.coderanch.com/t/533149/GUI/java/it-possible-display-google-maps
 
sum prit
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. i have gone through the link and tried to use the sample code and run it, but it is showing me error in-

The MapAboutBox.java file2 errors in .getInstance(mappapp.MainApp.class)......)

org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(mapapp.MapApp.class).getContext().getResourceMap(MapAboutBox.class);

and

javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(mapapp.MapApp.class).getContext().getActionMap(MapAboutBox.class, this);

It says that---

Multiple markers at this line
- Bound mismatch: The generic method getInstance(Class<T>) of type Application is not applicable for the arguments
(Class<MapApp>). The inferred type MapApp is not a valid substitute for the bounded parameter <T extends Application>
- mapapp cannot be resolved to a type.

I don't understand what to do. please give some more information.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic