Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaFX How to change ProgreesIndicator "Done" message at the end of progress

Is there any reliable way to change text or set System Locale for controls.properties?

like image 239
Ernisto Avatar asked Jan 24 '26 05:01

Ernisto


1 Answers

This should work:

    progressIndicator.progressProperty().addListener((obs, oldValue, newValue) -> {
        if (newValue.doubleValue() >= 1.0) {
            Text doneText = (Text) progressBar.lookup(".percentage");
            doneText.setText("Finished");
        }
    });
like image 182
James_D Avatar answered Jan 26 '26 19:01

James_D



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!