Over a million developers have joined DZone.

FXGraphics2D - A bridge from Java2D to JavaFX


FXGraphics2D 1.1 is now available to download.  Use it to create graphical output on a JavaFX Canvas using existing Java2D-based code.  It allows you to leverage mature Java libraries in new JavaFX applications (for example, JFreeChartOrson Charts and JLaTeXMath amongst others), and can save you a lot of time when migrating Swing applications to JavaFX.

In the following screenshot, FXGraphics2D is used to render 3D charts from the Orson Charts library:


{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}