8296920: Regression Test DialogOrient.java fails on MacOS
Reviewed-by: honkar, dnguyen, achung, jdv
This commit is contained in:
parent
ac41c03003
commit
8c9d21e519
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2007, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -69,8 +69,8 @@ public class DialogOrient implements Printable {
|
|||||||
Sysout.printInstructions( instructions );
|
Sysout.printInstructions( instructions );
|
||||||
|
|
||||||
PrinterJob job = PrinterJob.getPrinterJob();
|
PrinterJob job = PrinterJob.getPrinterJob();
|
||||||
job.setPrintable(new DialogOrient());
|
|
||||||
PageFormat landscape = job.pageDialog(job.defaultPage());
|
PageFormat landscape = job.pageDialog(job.defaultPage());
|
||||||
|
job.setPrintable(new DialogOrient(), landscape);
|
||||||
|
|
||||||
if (job.printDialog()) {
|
if (job.printDialog()) {
|
||||||
job.print();
|
job.print();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user