We would like to know how to get file type description from JFileChooser.
import java.io.File; /* ww w .j a va 2s.c om*/ import javax.swing.JFileChooser; public class Main { public static void main(String[] args) { File f = new File("f.jpg"); JFileChooser j = new JFileChooser(); System.out.println(j.getTypeDescription(f)); } }