JavaFX_CSS1
  • Adding Style Sheet
  • Button Control : Set ID
Use the following code used in the previous example, to begin with cr
Now Click on File New, then select Other>Cascading Style Sheet

Script in CSS file

Update the code in the main window.

Runt time view: