Tag Archives: JavaFX

JavaFX topics and projects

Star Chess: The Next Generation

At long last I’ve finished updating Star Chess to Java and JavaFX. This little space empire builder was the founding project of the Kynosarges website. The original Fortran 90 version (yes, really) was the first page I published back in 1999. The first total rewrite in plain C for Windows followed in 2001. Then the […]

ListView Text Alignment

The ListView class of JavaFX 8 shows one item per line – one String in the simplest case. What if you want to visually separate individual string fragments (words, numbers)? You could use a TableView with multiple columns, but that may not be appropriate for your data. Or you could insert tab characters (“\t”) into […]

Simulating Platform.runAndWait

Every JavaFX application maintains one single JavaFX application thread running the application’s event queue, much like Swing’s event dispatch thread. System-generated events such as mouse clicks are automatically inserted into the event queue. JavaFX also provides the method Platform.runLater to programmatically enqueue an arbitrary Runnable function object. You might occasionally wish to call runLater from […]

MIME Browser 1.3 Released

Version 1.3 of MIME Browser, my free EML message viewer written in JavaFX, is now available for download. The one big change is the upgrade to Java SE 8 with JavaFX 8 whose new Modena theme is fashionably flat and gray, as you can see in the screenshot below. (I made the blue hyperlinks a […]

JavaFX Text Icons as Images & Files

There are plenty of high-quality icon fonts for scalable user interfaces, and drawing them directly as Text into JavaFX UIs is simple. But what if you need the icon as an Image or a disk file? That’s not hard to achieve, either, but there are some non-obvious steps and many Java APIs to navigate. So […]

WebView, the other JavaFX UI

Aside from its native UI facilities, JavaFX provides a WebView that’s a fully-featured embedded HTML5 browser. The underlying WebEngine is a modified Webkit engine which comes as part of the freely available JavaFX source code. For JavaFX 2.2.4 (part of Java SE 7), Oracle offered a separate download. This code was based on Webkit 535.21, […]

MIME Browser 1.2 Released

Version 1.2 of MIME Browser, my free multi-platform EML viewer written in JavaFX, is now available for download. No big new features but a lot of small ones, including some user requests, as well as bug fixes and other tinkering. Specify individual files (in addition to folders) directly on the command line, or via drag […]

JavaFX ListView Sizing

JavaFX supports automatic self-adjusting layout that resizes controls along with the containing window, but this may require some non-obvious changes to the controls’ default properties. The problem I recently ran into was automatically resizing a ListView within a VBox. This article describes the undesirable default behavior and its correction, based on JavaFX 2.2 in JDK […]

JavaFX on iOS & Android?

JavaFX does not currently support iOS or Android, but the possibility has been subject to much hopeful speculation. One recent example is Felix Bembrick’s manifesto Six Degrees of Separation. What strikes me as odd is that people still seem to expect Oracle to deliver such ports. True, there was an announcement regarding open-sourcing “JavaFX on […]

JavaFX DPI Scaling

JavaFX is one of the GUI frameworks covered in my overview, DPI Scaling in Windows GUIs. As noted there, JavaFX 2.2 is partly but not fully suited for high DPI scaling on Windows. The default font and all standard controls are automatically scaled whereas explicitly specified sizes are not, with the exception of (some?) CSS […]