• Post Reply Bookmark Topic Watch Topic
  • New Topic

JFileChooser  RSS feed

 
Anirban dutta
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
When I use a file filter on a JFileChooser object ,then it gives only the filtered files in the dialog box, but there is a option of seeing "All files". I want to know how to remove that. Thank you very much.
 
Eric lau
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a method
setAcceptAllFileFilterUsed(boolean flag)
in the JFileChooser
you set it to false for you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!