Skip to content
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

TransformUI causes flickering #248

Open
weisJ opened this issue Jul 17, 2021 · 0 comments
Open

TransformUI causes flickering #248

weisJ opened this issue Jul 17, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@weisJ
Copy link
Owner

weisJ commented Jul 17, 2021

When running with java >= 16 we can't rely on setting a delegate repaint manager as the method to do so resides in SwingUtilities3 which isn't exported by the jdk as a module. Instead we need to wrap the global RepaintManager, which causes us to loose buffering information (and capability) resulting in flickering while resizing.

To stay compliant with module restrictions the fallback method is the standard for java >= 16 with the option to opt-in to the better approach by setting darklaf.useBufferedRepaintManage to true in the system properties and starting the application with
--add-exports java.desktop/com.sun.java.swing=ALL-UNNAMED (once #246 is merged this will be --add-exports java.desktop/com.sun.java.swing=darlaf.core)

Ideally we should find a better way to handle repaints in the TransformUI, which supports buffering without relying on internal API.

@weisJ weisJ added enhancement New feature or request help wanted Extra attention is needed labels Jul 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant