JavaFX beware of spaces in style classes

So here’s a trap I got caught out by today. When adding a style class to a JavaFX Node you would do the following: However, JavaFX, when it is looking to apply styles, treats each entry in the style class list as being its own style class. In short, will produce different results to: JavaFX … Continue reading JavaFX beware of spaces in style classes

Using a JavaFX WebView to display basic HTML content

A common requirement in modern User Interfaces is to display basic Rich Text/HTML descriptive content to the user. For example you might want to bold part of a piece of text to highlight something for the user or maybe display a bulleted list of items. Unfortunately, unlike Java Swing, standard JavaFX text components (TextField and … Continue reading Using a JavaFX WebView to display basic HTML content