diff --git a/simpleexample2/fxui/src/main/java/simpleex/ui/AbstractFxAppController.java b/simpleexample2/fxui/src/main/java/simpleex/ui/AbstractFxAppController.java index dd64168c4480e8d1db1804866bd121e65c7a562c..68b115fbd7bfb8479a884d7d16047ee91962c556 100644 --- a/simpleexample2/fxui/src/main/java/simpleex/ui/AbstractFxAppController.java +++ b/simpleexample2/fxui/src/main/java/simpleex/ui/AbstractFxAppController.java @@ -87,12 +87,7 @@ public abstract class AbstractFxAppController { locationListView.getSelectionModel().selectedIndexProperty() .addListener((prop, oldValue, newValue) -> updateMapMarker(true)); //connect the cell renderer to the list - locationListView.setCellFactory(new Callback<ListView<LatLong>, ListCell<LatLong>>() { - @Override - public ListCell<LatLong> call(ListView<LatLong> listView) { - return new LatLongCell(); - } - }); + locationListView.setCellFactory(listView -> new LatLongCell()); } private void handleMapDragged(final Node node, final double dx, final double dy) {