String[] tableTitleList = {" Title", " (Re)set", " Obs", " Mean", " Std.Dev", " Min", " Max", " Unit"};
for (int i = 0; i < 10; i++) {
List<String> tabTitleList = Arrays.asList(tableTitleList);
for (int i = 0; i < countList.size(); i++)
{
paneList.add(FlowPaneBuilder.create().maxHeight(850).maxWidth(500).style("-fx-border-color: white;").build());
tableList.add(GridPaneBuilder.create().
columnConstraints(new ColumnConstraints(100), new ColumnConstraints(65),
new ColumnConstraints(65), new ColumnConstraints(65), new ColumnConstraints(65),
new ColumnConstraints(65), new ColumnConstraints(65)).
rowConstraints(new RowConstraints(40), new RowConstraints(40)).
visible(true).gridLinesVisible(true).
build());
}
我想更改网格窗格的边框颜色和网格窗格内文本的颜色。所有gridpane都被添加到小组成员中。
答案 0 :(得分:-1)
对于边框颜色,你可以使用它:applyStyles(&#39; border:solid 1px red&#39;);
对于文本:setTextFill(&#39; Your Color&#39;)