On Tue, 12 Dec 2023 13:04:26 GMT, Tejesh R <t...@openjdk.org> wrote: > This is happening in linux where `BuffereStrategyPaintManager` is used to > paint to offscreen. Here `bsg` bufferStrategy SunGraphics2D is used to paint > to offscreen where the background is not refreshed, which does only clipping > and then paints to offscreen. In order to handle the screen updated/clear the > buffer, `setBackground` to component background color and `clearRect` against > the clip area is used which solves the issue without causing any regression. > CI is green for the fix and manual test is provided.
This pull request has now been integrated. Changeset: 04d43c43 Author: Tejesh R <t...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/04d43c435d3ede519df169053dd9d724aa2312eb Stats: 219 lines in 2 files changed: 219 ins; 0 del; 0 mod 8187759: Background not refreshed when painting over a transparent JFrame Reviewed-by: azvegint, abhiscxk, serb ------------- PR: https://git.openjdk.org/jdk/pull/17081