I am designing a JAVA program that retrieves coordinates of capitals from an XML File and displays MarkerDots in the Panel Containing the map; and I need to add a mouse listener event to this map in such a way that if the user clicked the mouse button on a dot, a Menu pops out showing details about the capital. I designed all of that, but my problem is that i need a way to get the coordinates of the dot relative to the Panel not the real coordinates(on earth) in order to check if the user clicked on the dot or outside it. So is there a possible way?
Any Help is appreciated!