Displaying a straight line and some points - Using JXMapKit
I'm using swingx-ws library to display the map component of my project (a desktop application, using Swing). As one of the requirements, I need to display a straight line to connect two cities on the map and some points to indicate positions.
Painter is deprecated or because of something else I can't use the common example "ploygon of Alaska "
I use OpenStreetMaps as the map provider.
Any clues will be greatly appreciated.
Thanks in advance.