@Override
public void initialize(final URL location, final ResourceBundle resources) {
startButton.disableProperty().bind(processRunning);
stopButton.disableProperty().bind(processRunning.not());
// restartButton.disableProperty().bind(processRunning.not());
processRunning.addListener((observable, oldValue, newValue) -> {
if (newValue) {
processStatus.setFill(Color.GREEN);
} else {
processStatus.setFill(Color.RED);
}
});
consoleArea.getChildren().addListener((ListChangeListener<Node>) c -> {
final ObservableList<Node> textElements = consoleArea.getChildren();
while (textElements.size() > consoleTextElements) {
textElements.remove(0, textElements.size() - consoleTextElements);
}
});
//TODO support mouse scroll on console area
scrollPane.vvalueProperty().bind(consoleArea.heightProperty());
}
ProcessController.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:boutique-de-jus
作者:
评论列表
文章目录