title: java getFileType on mac OSX not showing result
body: <p>i am creating a swing file manager that shows files and folders. i also need to show the <strong>file type</strong> of every file.</p>
  
  <p>on windows i use</p>
  
  <pre><code> JFileChooser chooser = new JFileChooser();
   File file = new File("myfilepath");
  
   String fileTypeName = chooser.getTypeDescription(file);
  </code></pre>
  
  <p>it shows the description of file type. For example if it is a txt file then it shows <strong>"Text File"</strong>. </p>
  
  <p>But on mac osx it shows <strong>"Generic File"</strong> for all file types..</p>