Using scalable SVG in JavaFX

QWv3 will allow the user to scale the interface by using Ctrl+= and Ctrl+-. Of course, if the interface uses standard image types such as .png files then this won’t scale the images without some kind of intervention (-fx-scale-x, -fx-scale-y manipulation) and if it does scale the images then they are likely to become blurry. … Continue reading Using scalable SVG in JavaFX

Oh JavaFX, why, why, why?

Correction As noted by one of the comments on this post. The code I mention below only relates to files not urls. This negatives my statement about slow servers. My apologies for the misrepresentation, I should have been more careful. If you’ve ever done any programming you’ve probably had to deal with I/O (Input/Output) at … Continue reading Oh JavaFX, why, why, why?

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