Originally Posted by
curmudgeon
A problem you may have is that a map is more than just an image, especially if you want to zoom in and out without degrading the quality of what the user sees. In my opinion, this may be better accomplished with use of vector graphics rather than the typical Java raster graphics since the former would scale well. I will add the caveat that I myself have never done this and so cannot say that I've tested any of this. Also if you could search some more and find and use a well crafted ready-made solution, you'll of course be a step ahead of the game.
Also regarding Steven Bishop's advice, he has some useful recommendations, but I would strongly recommend that you avoid using KeyListeners or KeyAdapters with Swing applications. Much better would be to use AbstractActions tied to key bindings as well as button, menu, and even mouse events.
yes, You got my point, it is not just an image.I am trying to search a well crafted ready-made solution. I believe there must be some way in doing this. Currently I am trying Geotools. Anyone has experiences in using this? I am still a beginner.
thanks for your reply