On Thu, 17 Sep 2026 23:12:34 GMT, Michael Strauß <[email protected]> wrote:
> On Windows, a stage with a dark background can briefly be seen with a white > background until JavaFX renders the first frame. > This was initially observed and fixed by erasing the white background with > the scene fill color in > [JDK-8088179](https://bugs.openjdk.org/browse/JDK-8088179). > However, since this caused resize flicker, the fix was reverted in > [JDK-8171852](https://bugs.openjdk.org/browse/JDK-8171852). > > A better solution is to manually erase the background until the first > `WM_PAINT` message is received, and then stop doing so. This solves both > problems: it prevents the initial white flash, and it also prevents resize > flicker. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: 7c57232d Author: Michael Strauß <[email protected]> URL: https://git.openjdk.org/jfx/commit/7c57232d629d6e54075a64d73eb2c017694c2d86 Stats: 54 lines in 3 files changed: 31 ins; 17 del; 6 mod 8392595: Window with dark background flashes white when opened Reviewed-by: mfox, lkostyra ------------- PR: https://git.openjdk.org/jfx/pull/2316
