• Advertisement
Sign in to follow this  

[java] Swing JFileChooser problem..

This topic is 4686 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi peoples!! I'm having a problem with my JFileChooser object.. I'm trying to get the selected file using the getSelectedFile() method.. The problem is this only seems to work when I mouse-click on the file in the directory browser of the file chooser, If I type in the filename into the text input, even if the file is present in the current directory, it doesn't find the file.. So my question is how do I read the text input aswell so that I can make sure the file can be read no matter how it is retrieved..?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement