Closed eduhoribe closed 2 years ago
This is not a bug.
This is normal behavior for look and feels that support window decorations,
where LookAndFeel.getSupportsWindowDecorations()
returns true
.
Same happens for Metal L&F:
For L&Fs that do not support window decorations (GTK, Windows, Nimbus, etc), you indeed get an empty window.
The reason for this behavior is in JFrame.frameInit()
: https://github.com/openjdk/jdk/blob/ef20ffe4d222d48f0bdba81a0b864d9fb455e9a6/src/java.desktop/share/classes/javax/swing/JFrame.java#L261-L268
I see... Thank you, I'm closing the issue then.
Sample code:
Expected result:
A JFrame/JDialog without the window decoration
Actual result:
A JFrame/JDialog with the window decoration
Workaround: