mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
6575247: Banner checkbox in PrinterJob print dialog doesn't work
Reviewed-by: prr, jdv
This commit is contained in:
parent
0100968f1c
commit
ac5928bc2a
5 changed files with 210 additions and 20 deletions
|
@ -1271,6 +1271,12 @@ public abstract class RasterPrinterJob extends PrinterJob {
|
|||
JobSheets jobSheets = (JobSheets)attributes.get(JobSheets.class);
|
||||
if (jobSheets != null) {
|
||||
noJobSheet = jobSheets == JobSheets.NONE;
|
||||
} else {
|
||||
JobSheets js = (JobSheets)getPrintService().
|
||||
getDefaultAttributeValue(JobSheets.class);
|
||||
if (js != null && js.equals(JobSheets.NONE)) {
|
||||
noJobSheet = true;
|
||||
}
|
||||
}
|
||||
|
||||
JobName jobName = (JobName)attributes.get(JobName.class);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue