diff --git a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTabbedPaneUI.java b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTabbedPaneUI.java index 75129b73..630f9db8 100644 --- a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTabbedPaneUI.java +++ b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTabbedPaneUI.java @@ -199,6 +199,7 @@ public class FlatTabbedPaneUI int sh = contentSeparatorHeight; Insets insets = hasFullBorder ? new Insets( sh, sh, sh, sh ) : new Insets( sh, 0, 0, 0 ); + Insets contentBorderInsets = new Insets( 0, 0, 0, 0 ); rotateInsets( insets, contentBorderInsets, tabPlacement ); return contentBorderInsets; }