protected void setFileFilter()
   {
      m_fileChooser.setAcceptAllFileFilterUsed(false);
      String[] extensions = m_model.getExtensions();
      for (int extensionIndex = 0; extensionIndex < extensions.length; extensionIndex += 2)
      {
         m_fileChooser.setFileFilter(new FileNameExtensionFilter(extensions[extensionIndex].toUpperCase() + " File", extensions[extensionIndex + 1]));
      }
   }
protected void setFileFilter ( ) { m_fileChooser . setAcceptAllFileFilterUsed ( false ) ; String [ ] extensions = m_model . getExtensions ( ) ; for ( int extensionIndex = 0 ; extensionIndex < extensions . length ; extensionIndex += 2 ) { m_fileChooser . setFileFilter ( new FileNameExtensionFilter ( extensions [ extensionIndex ] . toUpperCase ( ) + " File" , extensions [ extensionIndex + 1 ] ) ) ; } }
Update the file chooser's filter settings.