Skip to main content

Displaying a straight line and some points - Using JXMapKit

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
whycantiusesymbo
Offline
Joined: 2012-08-08

Hello All,

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.

Question:
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.