JTree nodes won't get visually selected
问题 Somehow I am not able to enable a "select highlight" for my JTree nodes. I am working with a custom cell renderer in my project (which most likely causes this problem). This is the full renderer class code: protected class ProfessionTreeCellRenderer extends DefaultTreeCellRenderer { private final JLabel label; public ProfessionTreeCellRenderer() { label = new JLabel(); setBackgroundSelectionColor(Color.BLUE); setOpaque(true); } @Override public Component getTreeCellRendererComponent(JTree