JDK-8165024 : Print dialogs are not shown in fullscreen
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8,9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_7
  • CPU: x86_64
  • Submitted: 2016-08-23
  • Updated: 2016-08-30
  • Resolved: 2016-08-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Duplicate :  
Relates :  
Description
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.


Comments
We don't use FSEM in FX if we did then FX popup menus (tooltip, combo box, etc) wouldn't work. So yes, this seems like it is just a duplicate of JDK-8088395
30-08-2016

A duplicate of https://bugs.openjdk.java.net/browse/JDK-8088395 although showing another window in FSEM surely wouldn't work anyway ? This seem to apply only if fullscreen is really just a big undecorated window covering the entire screen.
30-08-2016

I can confirm that this also happens in JDK 8 GA.
30-08-2016

Moving it to for JDK for dev team's evaluation.
30-08-2016