JavaFX Printing

Does JavaFX 2.0 support printing? I have a text area from which I take text, and then I want to print it, but there seems to be no functionality for this. Of course, here I am talking about printing on a printer. :)

+7
source share
2 answers

not yet supported. As a workaround, you can take a screenshot and print using Java2d.

Cm.

Copy a ScatterChart image to the system clipboard in JavaFX 2.0

Printing BufferedImage in Java

Update:

JavaFX8 (which will be included in a future version of JDK8) has print support. See a good example here: http://java.dzone.com/articles/introduction-example-javafx-8

+11
source

I believe that it is already supported in JavaFX 2.2.

-one
source

All Articles