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

2015-06-15 Thread Werner Lehmann

Hi Alexander,

this seems to be a known bug:
https://bugs.openjdk.java.net/browse/JDK-8088395

Rgds
Werner

On 15.06.2015 07:54, Александр Свиридов wrote:

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?




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

2015-06-14 Thread Александр Свиридов
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)){
  webView.getEngine().print(job);
 job.endJob();}
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?


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