On Wed, 22 Jan 2025 07:02:21 GMT, Prasanta Sadhukhan <psadhuk...@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 Actually there is no "border"..the gray "border" is a Skin image drawn using drawImage and the blue progressbar inside it is a drawline with set stroke of height "preferredHeight" as set by application and I have modified to use scaling factor for the line width/height ------------- PR Comment: https://git.openjdk.org/jdk/pull/23227#issuecomment-2612399711