when using the JFileChooser: 1. how can one strict the search for .csv files only 2. start the search from the desktop.
thanks p
Garrett Rowe
Ranch Hand
Joined: Jan 17, 2006
Posts: 1295
posted
0
1. how can one strict the search for .csv files only
You can create a subclass of FileFilter and implement the accept method to accept only files ending in *.csv. Then add to the FileFilter using JFicleChooser.setFileFilter() method.
[ April 19, 2006: Message edited by: Garrett Rowe ]
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter