• Post Reply Bookmark Topic Watch Topic
  • New Topic

JFileChooser  RSS feed

 
Jon Doe
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm trying to find out if it's possible to get access to JFileChooser's approve button. Specifically, I want to disable it unless a file or directory is selected in the view. I know one can change the text/tooltip of it, but can you actually disable/enable it?
Thanks in advance,
Leo
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would probably have to extend it and add your own funtionality.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!