text.setText(stringValue); text.setSelect(isSelected); text.setFocus(hasFocus);
_text.setText(stringValue); _text.setSelect(isSelected); _text.setFocus(hasFocus);
    public Component getTreeCellRendererComponent(JTree tree, Object value,    boolean isSelected, boolean expanded,    boolean leaf, int row, boolean hasFocus) {        String  stringValue = tree.convertValueToText(value, isSelected,        expanded, leaf, row, hasFocus);        setEnabled(tree.isEnabled());        text.setText(stringValue);        text.setSelect(isSelected);        text.setFocus(hasFocus);        if (leaf) {            icon.setIcon(UIManager.getIcon("Tree.leafIcon"));        } else if (expanded) {            icon.setIcon(UIManager.getIcon("Tree.openIcon"));        } else {            icon.setIcon(UIManager.getIcon("Tree.closedIcon"));        }        return this;    }