For the score function, you can just use Pythagoras directly on the latitude and longitude to calculate the distance between 2 points.
To visualize it in a panel with a specific width and height, take a look at my LatitudeLongitudeTranslator (java, open source, ASL 2.0) which is used in this TSP GUI.