[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-swing-dev
Subject:    Re: <Swing Dev> [9] Review request for 8160160: The menu displayed nothing with the option"-server -
From:       Sergey Bylokhov <Sergey.Bylokhov () oracle ! com>
Date:       2016-08-31 19:29:28
Message-ID: 9abb3797-a7c2-34d7-3a26-0df4f9df5f17 () oracle ! com
[Download RAW message or body]

Did you try to force HW popups for GTK l&f? The current proposal will 
lead to the situation when popup will have different border depending on 
location in/out of the frame.

On 31.08.16 10:54, Semyon Sadetsky wrote:
> Hi Sergey,
>
> This is a valid concern. The fix is updated:
> http://cr.openjdk.java.net/~ssadetsky/8160160/webrev.02/
>
> --Semyon
>
>
> On 8/30/2016 11:10 PM, Sergey Bylokhov wrote:
>> Hi, Semyon.
>> I suggest to double check the HW menu/popups, they should have the
>> correct border, because they should use the top level window, which
>> should contains correct shadow effect. Note that after the fix we
>> should not have two borers in such cases.
>>
>> On 29.08.16 20:11, Alexandr Scherbatiy wrote:
>>>
>>> The fix looks good to me.
>>>
>>> Thanks,
>>> Alexandr.
>>>
>>> On 8/29/2016 7:08 PM, Semyon Sadetsky wrote:
>>>> http://cr.openjdk.java.net/~ssadetsky/8160160/webrev.01/
>>>>
>>>> return type of ENGINE.finishPainting() changed to Buffered image.
>>>>
>>>> img.getRGB() returns a primitive not an object.
>>>>
>>>> --Semyon
>>>>
>>>>
>>>> On 8/29/2016 3:45 PM, Alexandr Scherbatiy wrote:
>>>>>
>>>>>
>>>>> On 8/29/2016 1:12 PM, Semyon Sadetsky wrote:
>>>>>> Hello,
>>>>>>
>>>>>> Please review fix for JDK9:
>>>>>> https://bugs.openjdk.java.net/browse/JDK-8160160
>>>>>>
>>>>>> bug: https://bugs.openjdk.java.net/browse/JDK-8160160
>>>>>>
>>>>>> webrev: http://cr.openjdk.java.net/~ssadetsky/8160160/webrev.00/
>>>>>>
>>>>>> The menu border is not painted by GTK Adwaita theme and makes popup
>>>>>> menu invisible at some circumstances.  To resolve this the GTK menu
>>>>>> border color is compared to the menu background color and if the
>>>>>> same the border is painted by means of java graphics using a bit
>>>>>> different color tone.
>>>>>   - BufferedImage img = (BufferedImage) ENGINE.finishPainting();
>>>>>   if the ENGINE.finishPainting() always returns BufferedImage it
>>>>> would be better to change the return type to BufferedImage.
>>>>>
>>>>>   - border == img.getRGB(w / 2, h / 2)
>>>>>   Could we rely on that img.getRGB(0, h / 2) returns the same object
>>>>> as the img.getRGB(w / 2, h / 2)? May be it is use equals() methods
>>>>> for comparing in this case.
>>>>>
>>>>>   Thanks,
>>>>>   Alexandr.
>>>>>>
>>>>>> --Semyon
>>>>>>
>>>>>
>>>>
>>>
>>
>>
>


-- 
Best regards, Sergey.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic