Hello I am trying to add a JLabel
to a JMapViewer
, my current code is
JLabel label = new JLabel(jlabels[x]);
Point point = map.getMapPosition(lat, lng, false);
map.add(label);
label.setLocation(point);
MapMarker marker = new MapMarkerDot(lat, lng);
map.addMapMarker(marker);
map.validate();
map.repaint();
However it won't seem to add the label at all. I am no sure what else I could do to make it work. There are a few other questions like this but none have any answers so was wondering if anyone could help?