Re: Choosing specific file in JFileChooser



Ralf Seitner wrote:
dushkin schrieb:
...
I need to allow the selection of only specific file name from a
JFileChooser dialog.
...
If the user can't really choose a file, why do you use a JFileChooser?
Why don't you simply open that file? ;-)

Good point. Why not simply ask the user to identify
the *directory* that contains the appropriate file?

(And please, read the JavaDocs carefully before asking
how to do that.)

Andrew T.

.