title: TreePath to java.io.File
body: <p>Is there any easy way of getting a <code>File</code> (or <code>java.nio.file.Path</code>, for that matter) from a <code>TreePath</code>?</p>
  
  <p>For example, you have a <code>JTree</code> like this:</p>
  
  <pre><code>Green
  |---Blue
  |---Red
  |---Yellow
      |---Purple.jpg
      |---Brown.jpg
      |---Black.jpg
  </code></pre>
  
  <p>If you have a <code>TreePath</code> going to <code>Black.jpg</code>, is there a way to get a <code>File</code> (or <code>Path</code>) with path <code>Green\Yellow\Black.jpg</code>?</p>
  
  <p>I can do it the long way, by taking parents/children one by one and constructing the path bit by bit, but I was hoping there might be a more elegant way... </p>