我正在对图形 JavaFX 主题进行自我培训
我的目标是能够在相应的框中放置一个X
我找到了几个教程,解释如何编写部分或完整行,但只有一个字段,并且取决于列/行值...我做不到,我需要社区的帮助来“睁开眼睛”,所以运行我的篮筐吧哈哈
提前谢谢
祝你有美好的一天/晚上/晚上/早上
通过 GridPane,我找到了我可能需要的东西:)
@FXML
protected void shootOnGrid(ActionEvent actionEvent) {
if (column.getText().isEmpty() || line.getText().isEmpty() ){
resultShoot.setText("There is some information missing");
} else {
resultShoot.setText(column.getText()+line.getText());
grid.add(new Text(line.getText()), 0,0);
}
}
现在,我需要使用这些属性:)
如果我可以命名列和行...等等