List of usage examples for javax.swing JFileChooser getTypeDescription
public String getTypeDescription(File f)
From source file:Main.java
public static void main(String[] argv) { JFileChooser chooser = new JFileChooser(); File file = new File("filename.txt"); String fileTypeName = chooser.getTypeDescription(file); }