RFR: 8318577: Windows Look-and-Feel JProgressBarUI does not render correctly on 2x UI scale [v2]
lawrence.andrews
duke at openjdk.org
Wed Jan 22 17:10:50 UTC 2025
On Wed, 22 Jan 2025 07:02:21 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> JProgressBar (StringPainted variant) does not render consistently on HiDPI displays (e.g. 200% Scale Factor) on Windows (using Windows Look-and-Feel) depending on the height at which JProgressBar is rendered, in which case the gap between progressbar and skin is different for different height as can be seen below
>>
>> 
>>
>> Native windows progressbar renders without leaving any gap as can be seen here
>>
>> 
>>
>> so the padding is removed to render the progressbar similar to windows native and it is rendered properly
>>
>> 
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>
> summary update
The ProgressBar p1 & p2 are set with value 50 ( setValue(50);) in testcase but the image shows 100%
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23227#issuecomment-2607799702
More information about the client-libs-dev
mailing list