}
});
addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
LatitudeLongitudeTranslator translator = schedulePainter.getTranslator();
if (translator != null) {
double longitude = translator.translateXToLongitude(e.getX());
double latitude = translator.translateYToLatitude(e.getY());
VehicleRoutingWorldPanel.this.vehicleRoutingPanel.insertLocationAndCustomer(longitude, latitude);
}
}
});
}