Tag Archives: JavaFX

JavaFX topics and projects

MIME Browser & Star Chess Updated

Following the recent release of Java SE 8 Update 40, I’ve updated my two open-source projects that currently use JavaFX to its latest version: MIME Browser 1.3.2 and Star Chess 2.0.1. In both cases, I replaced my homespun exception dialogs and message boxes with calls to the new dialog API. There were also a few […]

Java SE 8 Update 40 Released

Java Standard Edition 8 Update 40 is now upon us, and despite the “Update” designation this was a fairly massive feature release. You can find overviews at Java Source and Java Tutorials, and of course the detailed release notes. The changes I’m most interested in concern JavaFX, including accessibility support, new controls – more on […]

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 […]