On Wed, 18 Jun 2025 19:28:18 GMT, Damon Nguyen <dngu...@openjdk.org> wrote:
> Compilation error on windows with `WindowsButtonUI` used. Replaced it with > `BasicButtonUI` to maintain overriding the `paintText` method but this was > not the same as Windows L&F buttons. I attempted to import `WindowsButtonUI` > and extending it, but the class is `final`. Instead, I chose to add a > LineBorder in the same way as when a Rectangle was drawn to keep the same > test behavior. It seems the extra 1 pixel width is unnecessary now when > testing, so the changes only include removing `MyButtonUI` and adding a > LineBorder. Please confirm that you can reproduce JDK-4991587 by the updated test. ------------- PR Comment: https://git.openjdk.org/jdk/pull/25883#issuecomment-2985890870