This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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
composition vs inheritance
JFileChooser problems
Prompting the user whether to close the JFrame
excluding files using FileFilter
how to open picture in JPanel