JavaFX printing


Question

Does JavaFX 2.0 supports printing? I have a text area from which I take the text and then I want to print it, but it seems that there is not functionality for that. Of course, here I am talking about printing to a printer. :)

1
7
11/28/2013 1:17:03 PM

Accepted Answer

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

See

Copying the image of a ScatterChart to system clipboard in JavaFX 2.0

Printing a BufferedImage in Java

Update:

JavaFX8 (which will be included into upcoming JDK8 release) has printing support. See nice example here: http://java.dzone.com/articles/introduction-example-javafx-8

11
5/23/2017 12:08:40 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon