JFileChooser FileIsVisible

O

Oracle3001

Hi All,

I want to use a JFileChooser to select single files. I have applied a
filter, and I only want to allow the selection of those files. I have turned
off the all files option. I am still left with the possibility that the user
may type into the box a filename that is not one show under the filter. I do
not want this to be allowed.

I have found in the API a FileIsVisible method, but no idea how to use it,
as its a void return type.

Any ideas guys,

Adam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,119
Latest member
IrmaNorcro
Top