From ddf67db9df5fe54294f8aacc163b10723dd9d41c Mon Sep 17 00:00:00 2001 From: weisj Date: Sun, 26 Jul 2020 21:25:07 +0200 Subject: [PATCH] Make sure correct component is added to icon wrapper editor. --- .../darklaf/ui/table/renderer/DarkTableCellEditorDelegate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/table/renderer/DarkTableCellEditorDelegate.java b/core/src/main/java/com/github/weisj/darklaf/ui/table/renderer/DarkTableCellEditorDelegate.java index f2dde9e6..f6802e09 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/table/renderer/DarkTableCellEditorDelegate.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/table/renderer/DarkTableCellEditorDelegate.java @@ -151,9 +151,9 @@ public class DarkTableCellEditorDelegate extends TableCellEditorDelegate { if (rendererComp instanceof JLabel && comp instanceof JComponent) { Icon icon = ((JLabel) rendererComp).getIcon(); if (icon != null) { - comp = iconWrapper; iconWrapper.init((JComponent) comp, icon, rendererComp.getComponentOrientation().isLeftToRight()); iconWrapper.setIconGap(((JLabel) rendererComp).getIconTextGap() - 1); + comp = iconWrapper; } } return comp;