Java JFileChooser Filter getWavFileFilter()

Here you can find the source of getWavFileFilter()

Description

get Wav File Filter

License

Open Source License

Declaration

public static FileFilter getWavFileFilter() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.swing.filechooser.FileFilter;

import java.io.File;

public class Main {
    public static FileFilter getWavFileFilter() {
        return new FileFilter() {
            @Override/*  w w w. jav  a 2 s.  co m*/
            public boolean accept(File f) {
                return f.isDirectory() || f.getName().endsWith(".wav");

            }

            @Override
            public String getDescription() {
                return "WAV sound files";
            }
        };
    }
}

Related

  1. getFilterExtensions(FileNameExtensionFilter... filters)
  2. getHostFileFilters()
  3. getKCTapFileFilter()
  4. getManikaFileFilter()
  5. getMostRecentFile(File dir, java.io.FileFilter filter)
  6. list(ArrayList list, File file, javax.swing.filechooser.FileFilter filter)
  7. listAll(File file, javax.swing.filechooser.FileFilter filter)
  8. listAll(File file, javax.swing.filechooser.FileFilter filter)
  9. makeFileFilter(final String desc, final String... types)