title: JFileChooser Add different file types in filter
body: <p>I have a <code>JFileChooser</code> and i want to have different options available in the type which will change the extension. The options i want are</p>
  
  <ul>
  <li>.txt</li>
  <li>.html</li>
  <li>.xml</li>
  </ul>
  
  <p>Right now I have:</p>
  
  <pre><code>    JFileChooser chooser = new WritableFileChooser(Model.getSingleton().getOptionsParam().getUserDirectory());
  
      chooser.setFileFilter(new FileFilter()
      {
  
          @Override
          public boolean accept(File file)
          {
              if (file.isDirectory())
              {
                  return true;
              }
              else if (file.isFile())
              {
                  String lcFileName = file.getName().toLowerCase(Locale.ROOT);
                  return (lcFileName.endsWith(TXT_FILE_EXTENSION) || lcFileName.endsWith(HTML_FILE_EXTENSION) || lcFileName.endsWith(XML_FILE_EXTENSION)                                          }
              return false;
          }
  
          @Override
          public String getDescription()
          {
              return Constant.messages.getString("file.format.html");
          }
  </code></pre>
  
  <p>But only All files and HTML are available in the file type filter. Ideally, i also want to get rid of the All files options.</p>
  
  <p>Also i have two different format .html's that are to be generated, is there any indicator i can add so that the file chooser is smart enough to know which one i want?</p>