how to update progress of the progress bar to show the progress of copying a file
问题 I want a progress bar to indicate files being copied how to update the progress bar to show the progress of copying a file by combining below lines of code?? here's my code for progressbar. @FXML private void startbtnaction(ActionEvent event) { startbtn.setDisable(true); progressbar.setProgress(0); txt.setText(""); cancelbtn.setDisable(false); copyworker = createWorker(numFiles); progressbar.progressProperty().unbind(); progressbar.progressProperty().bind(copyworker.progressProperty());