<Swing Dev> RFR JDK-8239312 [macos] javax/swing/JFrame/NSTexturedJFrame/NSTexturedJFrame.java
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Tue Mar 24 23:52:18 UTC 2020
On 3/23/20 10:04 pm, Prasanta Sadhukhan wrote:
>
> On 24-Mar-20 10:17 AM, Sergey Bylokhov wrote:
>> On 3/23/20 9:36 pm, Prasanta Sadhukhan wrote:
>>> I did not get this point. "apple.awt.brushMetalLook" and "window.style" both set TEXTURED property of NSWindow so it's gradient should be the same, no?
>>>
>>> So, at what time do you think they will not be same?
>>
>> It seems every time the window becomes visible the background gradient
>> draws slightly differently(it is drawn by the macOS, not java). It fails
>> even if the "apple.awt.brushMetalLook" used twice.
>>
> There's a 2 sec gap between window being visible and image is captured by robot, so if it is momentary macos draw problem, it should not have been there as we wait long enough after the window is visible. If it's permanent macos draw problem, then do we need to file a bug to apple?
I am not sure this is a bug, it looks like the gradient is generated on the fly,
and it is different every time. But it will be helpful to compare the diff pixel by pixel.
--
Best regards, Sergey.
More information about the swing-dev
mailing list