This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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: 662

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: 662

I found a silver bullet solution:



Thanks to Horstmann (Core Java Vol I (8th Ed). P.476
 
Have you checked out Aspose?
 
subject: FileFilter for excluding all files (*.*)
 
It's not a secret anymore!