<Swing Dev> RFR JDK-8239312 [macos] javax/swing/JFrame/NSTexturedJFrame/NSTexturedJFrame.java
Prasanta Sadhukhan
prasanta.sadhukhan at oracle.com
Tue Mar 24 05:04:36 UTC 2020
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?
Regards
Prasanta
More information about the swing-dev
mailing list