From 825070a98a5d2ac1309f78e4907cb5d32a0eb479 Mon Sep 17 00:00:00 2001 From: weisj Date: Sun, 9 Feb 2020 13:04:35 +0100 Subject: [PATCH] Fixed tabComponent not visible while dragging. Signed-off-by: weisj --- .../weisj/darklaf/ui/tabbedpane/TabbedPaneTransferHandler.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/com/github/weisj/darklaf/ui/tabbedpane/TabbedPaneTransferHandler.java b/src/main/java/com/github/weisj/darklaf/ui/tabbedpane/TabbedPaneTransferHandler.java index 4e4d5919..cd7c0311 100644 --- a/src/main/java/com/github/weisj/darklaf/ui/tabbedpane/TabbedPaneTransferHandler.java +++ b/src/main/java/com/github/weisj/darklaf/ui/tabbedpane/TabbedPaneTransferHandler.java @@ -170,8 +170,6 @@ public class TabbedPaneTransferHandler extends TransferHandler implements DropTa } else { index = -1; } - Component tabComp = tabPane.getTabComponentAt(index); - if (tabComp != null) tabComp.setVisible(false); tabPane.setSelectedIndex(index); if (ui != null) { ui.setRolloverTab(-1);