JXMapViewer - JButton as Waypoint
I developed a application which places the custom waypoints onto the map. I used WaypointPainter class to customize the waypoint. I have not used Gaphics object to draw the waypoint instead i used setRenderer(..)
I used JButton as a waypoints through which i added MouseListener to the waypoints to identify which waypoint was clicked.
1) When i move the map towards left/right/top/bottom all the waypoints are strucking up in the corners. They are not losing the GeoPositions. Can you please give me the colution for this.
2) Is there any other way rather than using JButton as Waypoints and adding listeners to the JButton.