Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有任何可靠的方法来更改文本或为 controls.properties 设置系统区域设置?
这应该有效:
progressIndicator.progressProperty().addListener((obs, oldValue, newValue) -> { if (newValue.doubleValue() >= 1.0) { Text doneText = (Text) progressBar.lookup(".percentage"); doneText.setText("Finished"); } });