Adding File Filters to the JFileChooser Dialog
Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 14301
Total Votes: 144 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...