JavaFx: printer dialog is shown behind main window(stage)

Александр Свиридов ooo_saturn7 at
Mon Jun 15 05:54:10 UTC 2015

I use java8. I have a main window (stage) and when I click at button "print" the following code is executed:
PrinterJob job =PrinterJob.createPrinterJob();if(job !=null&& job.showPrintDialog(null)){
The printer dialog appears. But! it appears behind the main window but not in front of main window! This strange behaviour happens only when dialog appears the first time. The second and other times it's in front of the main window. How to fix it?

Александр Свиридов

More information about the openjfx-dev mailing list