Addressing specific instances of the JavaFX classes can be done with the # symbol:
// CSS#myButton { -fx-background-color: lightblue; }// JavaFXButton btn = new Button("hi");btn.setId("myButton");
Here, we style only one instance of the Button class, based on the value set in the setId method.