-
-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repaint issue with JDK 19 or higher #700
Comments
That's strange 😕 Probably a general Java/Swing issue. When resizing the window, all components are shown again: Seems that some kind of image buffer is cleared on lock/unlock session... |
It is a JDK bug: https://bugs.openjdk.org/browse/JDK-8298876 Fix is coming with Java 21. Seems that we should avoid using Java 19 or 20 for Swing applications 😒 |
Can not reproduce the second issue.
How to do that? Could you give us detailed steps to reproduce? Thx. |
@ArthurKwasny finally found the cause for the issue that you reported here: #700 (comment) fixed in latest Please try it out. |
@DevCharly That's great, but it seems to work only partially. I am still able to replicate this repaint issue by doing the following steps:
Tested with flatlaf-3.3-20231125.181807-21.jar. on Windows 10, Adoptium JDK 21+35. |
@ArthurKwasny can not reproduce. Can you post some screenshot or screen cast? |
@DevCharly That's unfortunate :/ I recorded the issue: Video.mp4 |
There is a bug with JDK >= 19 and FlatLaf 3.x which causes panels to be repainted without repainting all/several child components under certain circumstances. This does not happen with Swings default Laf or with JDK 18.
This issue can be reproduced by locking and unlocking the PC. It also happens while previewing files within the Windows file explorer, eg with preview handlers from MS PowerToys.
Here: #592 "flatlaf.useWindowDecorations" was mentioned and first I thought it might be related, but I can still reproduce this bug pretty consistently, regardless of this setting.
Steps to reproduce:
It looks like only options of OptionPanes are rendered reliably.
Before the unlock:
After the unlock:
Tested on two Windows 10 machines with Oracles OpenJDK 19, Adoptium JDK 18 (no issues) / 19 / 20 and a simple maven project as well as the FlatLaf demo jar (v3.0, v3.1.1).
Test code I used:
The text was updated successfully, but these errors were encountered: