Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FileFilter for excluding all files (*.*)

 
Jon Camilleri
Ranch Hand
Posts: 664
Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 Camilleri
Ranch Hand
Posts: 664
Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found a silver bullet solution:



Thanks to Horstmann (Core Java Vol I (8th Ed). P.476
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic