如何将css应用于javafx表格列单元格
我想知道我可以使用哪个css类为表格单元格列着色。 我想将列和单元格生成为java代码。 我想要这样的东西:如何将css应用于javafx表格列单元格,css,javafx,Css,Javafx,我想知道我可以使用哪个css类为表格单元格列着色。 我想将列和单元格生成为java代码。 我想要这样的东西: ."the class cell" { -fx-background-color:black; } 谢谢大家。在表格栏中添加样式类。这会将样式类添加到此列的所有TableCells: column.getStyleClass().add("colored-column"); .table-cell.colored-column{ -背景色:黑色; }
."the class cell"
{
-fx-background-color:black;
}
谢谢大家。在
表格栏中添加样式类。这会将样式类添加到此列的所有TableCell
s:
column.getStyleClass().add("colored-column");
.table-cell.colored-column{
-背景色:黑色;
}