• Post Reply Bookmark Topic Watch Topic
  • New Topic

JFileChooser for selecting only .jar file from open dialog box ?

 
vicky ma
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to put filter to just show and select only .jar files present in system ?
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vicky ma wrote:how to put filter to just show and select only .jar files present in system ?


I believe that the Sun JFileChooser tutorial and the API explains all this. Have you gone through this yet?
 
vicky ma
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes. they explains about basic filter such as directory only but not user defined filters....
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vicky ma wrote:yes. they explains about basic filter such as directory only but not user defined filters....

Nope. It does
http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html#filters
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!