FULL PRODUCT VERSION :
java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Windows
A DESCRIPTION OF THE PROBLEM :
When opening a Javafx print dialog from a fullscreen stage. The print dialog is not shown(it is opened in the background but not visible).
The print dialog should be modal and shown over the fullscreen stage.
Related to https://bugs.openjdk.java.net/browse/JDK-8088395
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a fullscreen stage.
Open a print dialog from it.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Dialog shown over the fullscreen stage and modal.
ACTUAL -
Dialog not visible.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javafx.application.Application;
import javafx.print.PrinterJob;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
public class PrintExample extends Application
{
@Override
public void start( final Stage primaryStage )
{
final PrinterJob job = PrinterJob.createPrinterJob();
final Button b = new Button( "Print Dialog" );
b.setOnAction( event -> job.showPrintDialog( primaryStage ) );
final BorderPane pane = new BorderPane( b );
final Scene scene = new Scene( pane );
primaryStage.setScene( scene );
primaryStage.setFullScreen(true);
primaryStage.show();
}
public static void main( final String[] args )
{
launch( args );
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Write it��s own print dialog. This a bad solution because functionalities like print multiple pages per sheet and advance printer configuration are not available.