Bind the progress of a query to a progressProperty of a ProgressBar for informing the user of download and upload time in javaFX?
问题 I got an app that upload and download images to a mysql database but this take like 5 secs and i want to tell the user the progress of this i do the transactions in a task here is the code // progres bar indefinit progressBar.setProgress(-1); Task<Void> task = new Task<Void>() { @Override protected Void call() throws Exception { try { //i net to put to sleep the javafx thread for making a connection Thread.sleep(10); } catch (InterruptedException ex) { ex.printStackTrace(); } Platform