Browse Source

Make sure correct component is added to icon wrapper editor.

pull/198/head
weisj 4 years ago
parent
commit
ddf67db9df
  1. 2
      core/src/main/java/com/github/weisj/darklaf/ui/table/renderer/DarkTableCellEditorDelegate.java

2
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;

Loading…
Cancel
Save