setOpaque(true);
setOpaque(false);
    TreeCheckRenderer(boolean leafOnly)    {        this.leafOnly = leafOnly;        restoredSize = null;        setLayout(null);        setOpaque(true);        label = new TreeCheckLabel();        check = new JCheckBox();        check.setBackground(UIManager.getColor("Tree.textBackground"));        setBackground(UIManager.getColor("Tree.textBackground"));    }