Jump to content
  • Advertisement
Sign in to follow this  
ArchangelMorph

[java] Swing JFileChooser problem..

This topic is 4863 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!