I have a small question. I am using a JFileChooser in one of my projects and I want to make it so that I cannot edit the file name. Is there any way to do this?
sridarravi
0
Newbie Poster
Recommended Answers
Jump to PostMaybe set a FileFilter that only accepts the file name you want. (ps Why do yiou want to use a filechooser and not allow the user to specify the file name???)
Jump to PostI cannot find such option in API. If I'm correct you will achieve this only with your custom build JFileChooser. Is it worth to do it?
All 5 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
sridarravi
0
Newbie Poster
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
sridarravi
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.