explain

JavaFX – CSS editing

As I mentioned in previous posts, in JavaFX you have the power to customize your application UI easily, by using the well known – CSS (cascading style sheets), a language that allows the computer know how to format different controls or scenes. Using the code from here we’re going to tweak it a little bit and apply some formatting using JavaFX css, which is a little different from the CSS people are used to while working with websites.
Here is the JavaFX CSS reference guide, a very useful resource. I must confess that I am terrible at UIs, so the formatting may seem a disaster, but that is not the point. The point is to see how to connect the scene with the CSS file and how to apply some simple formatting.
(more…)