diff --git a/windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java b/windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java index 84fdf6e8..1de4dd39 100644 --- a/windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java +++ b/windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java @@ -462,7 +462,7 @@ public class WindowsTitlePane extends CustomTitlePane { g.setColor(background); g.fillRect(0, 0, width, height); - if (getWindowDecorationStyle() != JRootPane.NONE) { + if (getWindowDecorationStyle() != JRootPane.NONE && menuBar != null) { g.setColor(border); g.fillRect(0, height - 1, width, 1); }