Adding File Filters to the JFileChooser Dialog
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 12895
Total Votes: 139 votes
Submitted on: 2008-03-12 11:08:40
Submitted By: Devesh Khanna
Description:When using the JFileChooser dialog to open files, you will usually want to give the user a list of filters to make finding a file of a specific type easier. When using the JFileChooser to dialog to save files, you will usually want to give the user a list of types that they can save the file as. This tutorial will show how to do this. This tutorial will show how to create a file filter to only show text files and a file filter that shows only files that are less than a month old. More detail...