Updating a JavaFX ListView after service update
Found a better way myself:

saveButton.setOnAction( event -&gt; {
            // Save the updated note with the service
            Note selectedItem = listView.getSelectionModel().getSelectedItem();
            selectedItem.setTitle( titleField.getText() );
            selectedItem.setContent( contentField.getText() );
            noteService.updateNode( selectedItem );

            // First update the item in the model
            listView.getItems().set( listView.getSelectionModel().getSelectedIndex(), selectedItem );
            // Trigger a sort of the items. Could be avoided by checking if the title really did change
            listView.getItems().sort( new NoteComparator() );


This avoids getting the full lists of notes from the service again each time.