javafx.base requires java.desktop

Kevin Rushforth kevin.rushforth at
Fri Feb 22 14:05:16 UTC 2019

There are two dependencies that would be nice to get rid of in the 
future, but both will require work.

1) javafx.base requires java.desktop

This is to support the JavaBeans adapter classes. We could change this 
to be an optional dependency since they aren't needed unless an 
application uses them in which case the app would have loaded 
java.desktop. I suspect that this would be a fairly small effort.

2) requires java.desktop

The main reason for this is the implementation of printing, which uses 
Java2D printing under the covers. Replacing the existing JavaFX printing 
implementation with a native one would be a large effort.

-- Kevin

On 2/21/2019 9:46 PM, August Nagro wrote:
> I noticed that the javafx base module requires java.desktop, and therefore
> all of swing. Is this dependency really required for this package (or any
> javafx module other than the swing adapter)?
> - August

More information about the openjfx-dev mailing list