标签: java
创建gridpane并从数组中添加文本,我喜欢更改字体的颜色和大小
GridPane text = new GridPane(); for (int i = 0; i < 15; i++) { text.add(new Text("text"), 0, i); // probably here to do something to change fonts size etc. }
答案 0 :(得分:0)
来自docs:
Text t = new Text(10, 50, "This is a test"); t.setFont(new Font(20));
...假设这是Javafx。