JDK-8142394 : The area of content is darker than the title in the printed page
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8u40,9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86
  • Submitted: 2015-11-06
  • Updated: 2020-01-31
  • Resolved: 2016-08-12
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 :  
Description
Testsuite name: FX SceneGraphTests manual  
Test name(s): test/manual/printing/TitledPane.java
Product(s) tested: JDK8u72b07 (64bit) 
OS/architecture: mac10.10 x64
Reproducible: Always 
Reproducible on machine: Evergreen-machine, stt-mac-15.ru.oracle.com
Is it a Regression: No, looks like something changed inside macos.
Is it a platform specific issue: No. Color problem is reproducible on other platforms with both virtual and hardware printers.

Steps to reproduce:  Run attached sample. It will print content of the scene using default printer.
Expected result: TextArea has white background.
Actual result: TextArea has grey background as the main scene
Reproducible with other controls too.
 
The actual result: 
The area of title is darker than the content in the application,but 
in the printed page the area of content is darker than the title,please refer to the Title-App.png and TitledPane_printed.png
Comments
The issue is in OS X printing code in JDK (Java2D). The button backgrounds are a subtle LinearGradientPaint. These fail to print on OS X. See JDK bug https://bugs.openjdk.java.net/browse/JDK-8162796 which is actually not the first report of this as I just noticed. So I will close this out as a duplicate of one of the JDK printing bugs as the fix needs to be there.
12-08-2016

There is the same issue happened on ubuntu16.04-x64 with jdk8u111b08-64bit. RULE "test/manual/printing/PasswordField.java" any any RULE "test/manual/printing/TextArea.java" any any RULE "test/manual/printing/TextField.java" any any RULE "test/manual/printing/TitledPane.java" any any RULE "test/manual/printing/ToolBar" any any
11-08-2016

Attached sample. Bug is still reproducible: white rectangle is white, while textarea is dark gray.
11-08-2016

There is the same issue happened on ubuntu16.04-x86 with jdk8u111b07-32bit. RULE "test/manual/printing/PasswordField.java" any any
10-08-2016

The bug says "run the attached sample". But there is none. I am not completely sure I understand what the complaint is but it seems possible from looking at this that CSS was applied to the node as seen on screen, but not applied to the node that was printed. That would be an application issue, not a printing bug. Please check into that and if it is *not* the issue, attach a standalone program (one that does not require a test harness) that demonstrates the problem.
01-08-2016

There is the same issue happened on ubuntu16.04-x64 with jdk8u112b06-64bit.
01-08-2016

There is the same issue happened on Mac10.11-x64 with jdk9b126-64bit.
13-07-2016

There is the same issue happened on ubuntu16.04-x64 with jdk9b126-64bit. RULE "test/manual/printing/PasswordField.java" any any RULE "test/manual/printing/TextArea.java" any any RULE "test/manual/printing/TextField.java" any any RULE "test/manual/printing/TitledPane.java" any any
11-07-2016

There is the same issue happened on ubuntu14.04x86 with jdk8u102b07-32bit. RULE "test/manual/printing/PasswordField" any any
13-05-2016

There is the same issue happened on ubuntu14.04x86 with jdk8u101b07-32bit.
13-05-2016

There is the same issue happened on ubuntu14.04x86 with jdk8u101b06-32bit. RULE "test/manual/printing/PasswordField" any any RULE "test/manual/printing/TextArea" any any RULE "test/manual/printing/TextField" any any RULE "test/manual/printing/TitledPane" any any
06-05-2016

There is the same issue happened on Mac10.11-x64 with jdk8u101b04-64bit. RULE "test/manual/printing/PasswordField.java" any any RULE "test/manual/printing/TextArea.java " any any RULE "test/manual/printing/TextField.java" any any RULE "test/manual/printing/TitledPane" any any
22-04-2016

There's the same issue happened on Ubuntu14.04-x64 with JDK8u102b03-64bit. RULE "test/manual/printing/TitledPane" any any RULE "test/manual/printing/TextField" any any RULE "test/manual/printing/TextArea" any any RULE test/manual/printing/PasswordField.java any any
22-04-2016

There is the same issue happened on Windows7-x64 with jdk8u101b04-64bit
21-04-2016

There is the same issue happened on Mac10.11-x64 with jdk9b113-64bit. RULE "test/manual/printing/PasswordField" any any RULE "test/manual/printing/TextArea" any any RULE "test/manual/printing/TextField" any any RULE "test/manual/printing/TitledPane" any any RULE "test/manual/printing/ToggleButtons" any any RULE "test/manual/printing/ToolBar" any any
13-04-2016

There's the same issue happened on ubuntu16.04-x64 + jdk8u73b02-64bit
24-03-2016

There's the same issue happened on ubuntu16.04-x86 with JDK8u73b02-32bit.
24-03-2016

There's the same issue happened on win7-x86 with JDK8u75b08-32bit. RULE "test/manual/printing/TextArea.java" any any RULE "test/manual/printing/TextField.java" any any RULE "test/manual/printing/TitledPane.java" any any RULE "test/manual/printing/PasswordField.java" any any
19-02-2016

There's the same issue happened on Ubuntu13.10-x64 with JDK8u75b07-64bit. RULE "test/manual/printing/TextArea.java" any any RULE "test/manual/printing/TextField.java" any any RULE "test/manual/printing/TitledPane.java" any any RULE "test/manual/printing/PasswordField.java" any any
15-02-2016

There is the same issue happened on Mac10.11 x64 with jdk8u76b07-64bit. RULE "test/manual/printing/ToggleButtons.java" any any RULE "test/manual/printing/ToolBar.java" any any
14-02-2016

There's the same issue happened on Ubuntu14.04-x86 with JDK8u75b06-32bit. RULE "test/manual/printing/TextArea.java" any any RULE "test/manual/printing/TextField.java" any any RULE "test/manual/printing/TitledPane.java" any any RULE "test/manual/printing/PasswordField.java" any any
03-02-2016

There's the same issue happened on Ubuntu14.04-x64 with JDK8u76b05-64bit. RULE test/manual/printing/TextArea.java any any RULE test/manual/printing/TextField.java any any RULE test/manual/printing/TitledPane.java any any RULE test/manual/printing/PasswordField.java any any
30-01-2016

Therer's the same issue happened on Ubuntu13.10-x64 with JDK8u76b03/64bit.
25-01-2016

There's the same issue happened on win7-x64 with JDK8u75b04-64bit. RULE test/manual/printing/TextArea.java any any RULE test/manual/printing/TextField.java any any RULE test/manual/printing/TitledPane.java any any RULE test/manual/printing/PasswordField.java any any
21-01-2016

TOGGLE_BUTTONS in printed page is not the same as the buttons in the application window,the font of the first button is darker than the other one. The issue happened on Mac10.11-x64 with JDK8u72b15-64bit RULE test/manual/printing/ToggleButtons.java any any RULE test/manual/printing/ToolBar.java any any
23-12-2015

JDK 8u72b09/windows7 x64 RULE test/manual/printing/TextArea.java any any RULE test/manual/printing/TextField.java any any RULE test/manual/printing/TitledPane.java any any RULE test/manual/printing/PasswordField.java any any The issue: the TextArea's fill is white in the application,but in the printed page is grey
19-11-2015

JDK 8u72b08/ubuntu14.04 x64 RULE test/manual/printing/TextArea.java any any RULE test/manual/printing/TextField.java any any RULE test/manual/printing/PasswordField.java any any The issue: the TextArea's fill is white in the application,but in the printed page is grey
13-11-2015

JDK 8u72b08/ubuntu14.04 x64 There is same issue for case RULE test/manual/printing/TitledPane.java any any
13-11-2015

@Andrey: since you verified that this isn't a regression, can you please change 8u72 to some earlier version that you know contains the bug? Also, I presume that this affects JDK 9, too, right?
10-11-2015

Keywords: unconfirmed-vendor-evergreen
06-11-2015

RULE test/manual/printing/TitledPane.java any any
06-11-2015