This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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: 660

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

I found a silver bullet solution:



Thanks to Horstmann (Core Java Vol I (8th Ed). P.476
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: FileFilter for excluding all files (*.*)