<AWT Dev> Review request for 8151385: [hidpi] JOptionPane-Icons only partially visible when using Windows 10 L&F

Hendrik Schreiber hs at tagtraum.com
Fri Mar 18 13:09:32 UTC 2016


On Mar 16, 2016, at 06:25, Alexandr Scherbatiy <alexandr.scherbatiy at oracle.com> wrote:
> 
> 
>   The JDK fixes should be pushed to the JDK 9 first and then be back-ported to JDK 8.
> 
>   Could you prepare the fix for JDK 9?

Hi Alexandr,

I've created a patch for JDK9. You can find it at http://cr.openjdk.java.net/~hschreiber/8151385/webrev.00/ <http://cr.openjdk.java.net/~hschreiber/8151385/webrev.00/> (I hope, I created the webrev the right way). It contains a suitable test.

This patch also contains the changes I suggested in https://bugs.openjdk.java.net/browse/JDK-8149453 <https://bugs.openjdk.java.net/browse/JDK-8149453> (because the fixes overlap to a degree). I made sure they compile, but didn’t do any further testing (lack of time). Perhaps, since you are already working on this, you can try it out and, if you deem it appropriate, add a test for the upFolder/newFolder etc. buttons.

Cheers,

-hendrik

> 
> 
> On 3/12/2016 3:23 AM, Hendrik Schreiber wrote:
>> Thanks, Alexander.
>> Can you also review it?
>> 
>> -hendrik
>> 
>>> On Mar 11, 2016, at 19:06, Alexander Scherbatiy <alexandr.scherbatiy at oracle.com <mailto:alexandr.scherbatiy at oracle.com>> wrote:
>>> 
>>> 
>>> I have uploaded the webrev to the cr.openjdk.java.net <http://cr.openjdk.java.net/>:
>>>   http://cr.openjdk.java.net/~alexsch/hendrik.schreiber/8151385/webrev.00/ <http://cr.openjdk.java.net/%7Ealexsch/hendrik.schreiber/8151385/webrev.00/>
>>> 
>>> Thanks,
>>> Alexandr.
>>> 
>>> On 11/03/16 20:10, Hendrik Schreiber wrote:
>>>> Hey there,
>>>> 
>>>> I would very much appreciate a review (and a sponsor) for this JDK 8u fix.
>>>> 
>>>> Thanks so much!
>>>> 
>>>> -hendrik
>>>> 
>>>>> On Mar 7, 2016, at 16:47, Hendrik Schreiber < <mailto:hs at tagtraum.com>hs at tagtraum.com <mailto:hs at tagtraum.com>> wrote:
>>>>> 
>>>>> Hey there,
>>>>> 
>>>>> Could someone please review this fix for JDK8u.
>>>>> 
>>>>> Bug:
>>>>> https://bugs.openjdk.java.net/browse/JDK-8151385 <https://bugs.openjdk.java.net/browse/JDK-8151385>
>>>>> 
>>>>> Webrev:
>>>>> https://www.beatunes.com/download/webrev-8151385.zip <https://www.beatunes.com/download/webrev-8151385.zip>
>>>>> 
>>>>> Issue:
>>>>> On Windows 10 with a HiDPI display, the icons in JOptionsPanes are only partially displayed (screenshot in the bug report).
>>>>> 
>>>>> Fix:
>>>>> Changed the methods that create BufferedImages from Windows bitmaps so the actual bitmap size is taken into account.
>>>>> Background: Windows 10 delivers differently sized bitmaps based on display resolution.
>>>>> 
>>>>> Automated Test:
>>>>> The error icon displayed by JOptionsPanes is round and as such the pixels in all four corners are identical (transparent).
>>>>> If the error occurs, at least the pixel in the lower right corner is not the same as the one on the upper left corner. The test checks, that the pixels in all four corners are identical. This makes sure the test also succeeds on standard DPI displays.
>>>>> 
>>>>> For the test to actually fail (without the fix), this test needs to be run on a Windows 10 system with a HiDPI display.
>>>>> 
>>>>> I have tested this on Windows 7 and Windows 10.
>>>>> I have not tested it on Vista or Windows 8.x.
>>>>> 
>>>>> Thanks,
>>>>> 
>>>>> -hendrik
>>>>> 
>>>> 
>>> 
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20160318/2f801fe2/attachment.html>


More information about the awt-dev mailing list