From 25c2bbc85154713cab4c91d95c10f48192a697f9 Mon Sep 17 00:00:00 2001 From: Dar Date: Tue, 22 Oct 2024 18:05:14 +0200 Subject: [PATCH] fix: alternate row color paint --- .../src/main/java/com/formdev/flatlaf/ui/FlatTreeUI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTreeUI.java b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTreeUI.java index db0cc821..65146698 100644 --- a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTreeUI.java +++ b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTreeUI.java @@ -577,7 +577,7 @@ public class FlatTreeUI if( alternateRowColor != null && row % 2 != 0 ) { g.setColor( alternateRowColor ); - FlatUIUtils.paintComponentBackground((Graphics2D) g, bounds.x, bounds.y, tree.getWidth(), bounds.height, 0, 0); + FlatUIUtils.paintComponentBackground((Graphics2D) g, 0, bounds.y, tree.getWidth(), bounds.height, 0, 0); } // do not paint row if editing