MouseEvents in JavaFX

I had a lot of fun playing with mouse events while building our PageFlow PDF Viewing mode in JavaFX, so thought it worth writing a quick tutorial and sharing what I have learned. To begin, there are a few API documentation pages that I recommend being familiar with – the Node class (the class that…

Read More

Integrating JavaFX with Swing: The JFXPanel

If you want to use JavaFX, there are essentially two ways you can do so. The first is to create a standard JavaFX project that extends the Application Class, and the second is to use the JFXPanel class which extends JComponent, allowing you to use JavaFX in a Swing application. To quickly get started, my…

Read More

Handling Threads & Concurrency in JavaFX

Recently, while converting the PageFlow mode from Java3D to JavaFX in our Java PDF Viewer, I came across some ConcurrentModificationException issues, so thought it worthwhile sharing what I have learnt from fixing them. To explain what I was doing, I was putting ImageViews onto the scene and using MouseEvents to move the Images around the…

Read More