void (MouseEvent e) { if (UIUtil.isUnderWin10LookAndFeel() && rollOverPath != null) { TreeCellRenderer renderer = getCellRenderer(); if (rollOverPath.getLastPathComponent() instanceof TreeNode node) { JComponent c = (JComponent)renderer.getTreeCellRendererComponent( Tree.this, node, isPathSelected(rollOverPath), isExpanded(rollOverPath), getModel().isLeaf(node), getRowForPath(rollOverPath), hasFocus()); c.putClientProperty(UIUtil.CHECKBOX_ROLLOVER_PROPERTY, null); rollOverPath = null; UIUtil.repaintViewport(Tree.this); } } }