title: Javafx Gridpane Cell Background Colors
body: <p>So I have a javafx program which procedurally creates text nodes and inserts them into a GridPane. Each of these text nodes is given a CSS class. I used a stylesheet, to try to make the cells of each class a different color. However, I can only use the <code>-fx-fill</code> property to change the text color, which is good, but I cannot find anything online as to how to change the background of each cell through CSS or Java. I have also tried the <code>fx-background-color</code> property in the CSS, but that doesn't work. Any help would be appreciated; thanks.</p>