Unwanted artifacts on my JButton

David Alayachew davidalayachew at gmail.com
Fri Aug 29 03:40:48 UTC 2025


Ty vm Prasanta. Please keep me in the loop. I will also check back in to
the JBS page on occasion to see progress on this.

On Thu, Aug 28, 2025 at 10:23 PM Prasanta Sadhukhan <
prasanta.sadhukhan at oracle.com> wrote:

> Hi David,
>
> It seems to be a bug and its there from JDK9 when HiDPI feature was
> introduced in 2015..We will look into it but cannot commit on a timeframe
> for now..
> Regards
> Prasanta
> On 28-08-2025 04:11, David Alayachew wrote:
>
> Hello @client-libs-dev at openjdk.org <client-libs-dev at openjdk.org>,
>
> Here is my StackOverflow post --
> https://stackoverflow.com/questions/79748482/how-do-i-get-rid-of-these-artifacts-on-my-jbutton-and-or-what-am-i-doing-wrong
>
> I have a simple Swing GUI that takes in an image, puts it in a JPanel via
> JLabel, then adds a button to that same JPanel. When doing so, I get
> artifacts at the bottom of my JButton. You can see the StackOverflow post
> to see the code example and the artifacts.
>
> I was directed to the following bug entry --
> https://bugs.openjdk.org/browse/JDK-8253530
>
> Long story short, the issue is with the default scaling set for HI DPI
> monitors on Windows 11 (maybe other versions too?). If I set the scaling
> down to 100%, this issue goes away, and things work as expected.
>
> Anyways, my question is, is the linked bug something that is being
> considered? Based on the comments on it, looks like it is being treated as
> not an issue, but it wasn't flagged as such.
>
> Thanks for your time and consideration.
> David Alayachew
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/client-libs-dev/attachments/20250828/a881a280/attachment.htm>


More information about the client-libs-dev mailing list