I have a static List in Config Class
public class Config {
    public static ObservableList<Device> OnlineDevicesList = FXCollections.observableArrayList();
}
when the List got changed, i need to change the Items in
public class MainViewController {
    @FXML ListView<Device> lvOnlineDevices;
    public void initialize() {
        lvOnlineDevices.getItems().addAll(Config.OnlineDevicesList);
    }
}
how can i do that?
 
    