title: Java Swing: how do I define how a JTree displays the "user object"?
body: <p>When using a <code>JTree</code>, a "user object" of a <code>DefaultMutableTreeNode</code> can be set. This can be of any kind, but to display it, its <code>toString()</code> value is used. This is not what I need.</p>
  
  <p><strong>How can I change the way a user object is displayed?</strong></p>
  
  <p>NOTE: My user object <em>has</em> to be something different than a <code>String</code> to be able to maintain mapping between the tree and the user objects.</p>