diff --git a/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/DemoFrame.java b/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/DemoFrame.java index 7fded028..46d826f6 100644 --- a/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/DemoFrame.java +++ b/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/DemoFrame.java @@ -750,6 +750,9 @@ class DemoFrame boolean supportsWindowDecorations = UIManager.getLookAndFeel() .getSupportsWindowDecorations() || FlatNativeWindowBorder.isSupported(); + + // If the JetBrainsRuntime is used, it forces the use of it's own custom + // window decoration, meaning we can't use our own. if( !supportsWindowDecorations || JBRCustomDecorations.isSupported() ) { windowDecorationsCheckBoxMenuItem.setEnabled( false ); windowDecorationsCheckBoxMenuItem.setSelected( false );