Is there a way to force the ListView to be updated in Javafx 2.1 without reloading the list and changing the selected value?
An observable list consists of strings, so changing their value is not possible.
Try:
... ObservableList<String> olist = ... ListView<String> listv = ... ... listv.setItems(null); listv.setItems(olist);
Wrapping string values ββwith a property of type SimpleStringProperty and changing this property value must be feasible.
SimpleStringProperty
I use:
private static final ObservableList<String> lists = FXCollections.observableArrayList(); ... synchronized(lists) { List<String> lsts = new ArrayList<>(); lsts.addAll(lists); lists.clear(); lists.addAll(lsts); }
Source: https://habr.com/ru/post/946343/More articles:@JsonIgnore and @JsonBackReference are ignored - jsonSort in ascending order, but zeros are preserved - sortingFailed to save Websocket in iOS background - objective-cWhere is the private key when using SSL? - securityHow to read "source C, text ISO-8859" - pythonEndless recursion with the release of Jackson JSON and Hibernate JPA (another one) - javaMatLab; How to arrange strings in ascending order, but ignore null values? - sortingtransform '# ff00fffirstword # 445533secondword # 008877thirdword' to html tag format - javascriptWhat is the meaning of the operatorapache_request_headers () vs $ _SERVER - phpAll Articles