aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes FileFilter for excluding all files (*.*)  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "FileFilter for excluding all files (*.*)  " Watch "FileFilter for excluding all files (*.*)  " New topic
Author

FileFilter for excluding all files (*.*)

Jon Camilleri
Ranch Hand

Joined: Apr 25, 2008
Posts: 659

I'm trying to set a JFileChooser, with an option to exclude all files (*.*) from the filter, however, I think I'm missing something out



Related links
1. BasicFileChooserUI
2. BasicFileChooserUI

The complete code follows



Jon
Jon Camilleri
Ranch Hand

Joined: Apr 25, 2008
Posts: 659

I found a silver bullet solution:



Thanks to Horstmann (Core Java Vol I (8th Ed). P.476
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: FileFilter for excluding all files (*.*)
 
Similar Threads
JFileChooser problems
Prompting the user whether to close the JFrame
how to open picture in JPanel
composition vs inheritance
excluding files using FileFilter