Browse Source

Fixed tabComponent not visible while dragging.

Signed-off-by: weisj <weisj@arcor.de>
pull/27/head
weisj 5 years ago
parent
commit
825070a98a
  1. 2
      src/main/java/com/github/weisj/darklaf/ui/tabbedpane/TabbedPaneTransferHandler.java

2
src/main/java/com/github/weisj/darklaf/ui/tabbedpane/TabbedPaneTransferHandler.java

@ -170,8 +170,6 @@ public class TabbedPaneTransferHandler extends TransferHandler implements DropTa
} else { } else {
index = -1; index = -1;
} }
Component tabComp = tabPane.getTabComponentAt(index);
if (tabComp != null) tabComp.setVisible(false);
tabPane.setSelectedIndex(index); tabPane.setSelectedIndex(index);
if (ui != null) { if (ui != null) {
ui.setRolloverTab(-1); ui.setRolloverTab(-1);

Loading…
Cancel
Save