title: Java: How to get the thumbnail from a file
body: <p>In windows explorer (and linux gnome) shows for each file a thumbnail or <strong>icon</strong>. Like with EXEs, images, videos, txt-files, ini-files, Word documents and so much other file types. Now is my question: Is there a way to get a (preferably large) icon by file.</p>
  
  <p>Something like:</p>
  
  <pre><code>public static BufferedImage getThumbnail(File file) {...}
  </code></pre>
  
  <p>Thanks</p>