title: Prevent node selection on node expansion in a JTree
body: <p>I have created a <code>JTree</code> with some of its nodes being custom to show them as expandable although they don't have any children (yet). I have followed <a href="https://stackoverflow.com/questions/2472634/add-expand-button-to-jtree-node-that-has-no-children/2472752">this thread</a> to implement that.</p>
  
  <p>Why? I want do load the tree dynamically so when the tree gets expanded, I retrieve further information from the server and show it on the tree.</p>
  
  <p>The problem I am experiencing is that when I expand one of these nodes, it becomes selected, which is not the default behavior for the default nodes (you can expand them without changing the tree selection).</p>
  
  <p>How to solve this to prevent this node to become selected on expansion?</p>