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 c5f0d872..020d3576 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 @@ -371,7 +371,7 @@ public class WindowsTitlePane extends CustomTitlePane { setDisabledIcon(maximizeIcon); }}); } - menu.add(new JSeparator()); + menu.addSeparator(); menu.add(new JMenuItem(closeAction) {{ setDisabledIcon(closeIcon); }});