Browse Source

Only repaint if tree lines are enabled.

pull/198/head
weisj 5 years ago
parent
commit
1b11b4ebc9
  1. 5
      core/src/main/java/com/github/weisj/darklaf/components/treetable/JTreeTable.java

5
core/src/main/java/com/github/weisj/darklaf/components/treetable/JTreeTable.java

@ -38,6 +38,7 @@ import com.github.weisj.darklaf.components.treetable.model.TreeTableModel;
import com.github.weisj.darklaf.ui.cell.hint.CellHintPopupListener;
import com.github.weisj.darklaf.ui.tree.DarkTreeUI;
import com.github.weisj.darklaf.util.DarkUIUtil;
import com.github.weisj.darklaf.util.PropertyUtil;
public class JTreeTable extends JTable implements TreeSelectionListener {
@ -101,6 +102,8 @@ public class JTreeTable extends JTable implements TreeSelectionListener {
@Override
public void valueChanged(final TreeSelectionEvent e) {
repaint(0, 0, getColumnModel().getColumn(0).getWidth(), getHeight());
if (!DarkTreeUI.STYLE_NONE.equals(PropertyUtil.getString(tree, DarkTreeUI.KEY_LINE_STYLE, ""))) {
repaint(0, 0, getColumnModel().getColumn(0).getWidth(), getHeight());
}
}
}

Loading…
Cancel
Save