3

是否有任何可靠的方法来更改文本或为 controls.properties 设置系统区域设置?

4

1 回答 1

1

这应该有效:

    progressIndicator.progressProperty().addListener((obs, oldValue, newValue) -> {
        if (newValue.doubleValue() >= 1.0) {
            Text doneText = (Text) progressBar.lookup(".percentage");
            doneText.setText("Finished");
        }
    });
于 2014-04-03T01:55:20.453 回答