Assumption / Decision
Since you do not provide enough code, as usual, with MCVE , I assume that you need the following controller code:
public class FXMLDocumentController {
@FXML
private ProgressBar bar;
@FXML
private void initialize() {
bar.setProgress(ProgressBar.INDETERMINATE_PROGRESS);
}
}
It just sets the progress to -1.
Nwdev source
share