Call task's updateProgress
问题 I was reading the documentation for the class Task final Task<Void> task = new Task<Void>() { @Override public Void call() { for(int i=0;i<datesAndStudies.length;i++){ updateProgress(i,datesAndStudies.length); DoSomething something = new DoSomething(); something.VeryLongAndTimeConsumingMethod(i); } return null; } }; And I notice that updateProgress is protected and workdone/totalwork are both defined as public final ReadOnlyDoubleProperty . Is there a way/workaround to update/call