Example usage for javax.swing JFileChooser getTypeDescription

List of usage examples for javax.swing JFileChooser getTypeDescription

Introduction

In this page you can find the example usage for javax.swing JFileChooser getTypeDescription.

Prototype

public String getTypeDescription(File f) 

Source Link

Document

Returns the file type.

Usage

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);
}