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

Inconsistent behaviour of JDialog.setGlassPane on Windows x64 to other architectures (AArch64) and other OS #630

Closed
derreisende77 opened this issue Dec 21, 2022 · 4 comments
Milestone

Comments

@derreisende77
Copy link

I am using code where at a certain time setGlassPane() is called for a JDialog.
On Windows 11 x64 the result looks as follows (no titlebar visible):
win11_x64

This is different to macOS and Linux, where titlebar remains visible:
macOS_aarch64
linux_amd64

And interestingly, running the same code on Windows 11 Arm64 results in this (titlebar remains visible):
win11_aarch64

The behaviour on windows is inconsistent to other platforms and it is inconsistent for the same OS on different architectures.

@derreisende77
Copy link
Author

Forogot to mention screenshots were made with FlatLaf 3.0

@mac-dl
Copy link

mac-dl commented Dec 23, 2022

hey, What is the component of the icon in loading?

@derreisende77
Copy link
Author

@mac-dl JXBusyLabel with flatlaf-swingx

@DevCharly
Copy link
Collaborator

Thanks for reporting.

The reason for the different behavior on various platforms is that only Windows 10/11 x86/x64 use FlatLaf custom window decorations by default, which means that the window title bar is implemented in Swing and the glass pane overlaps the title bar.

Anyway, I've changed the behavior so that the glass pane no longer overlaps the title bar.

Fixed in latest 3.1-SNAPSHOT: https://github.com/JFormDesigner/FlatLaf#snapshots

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants