CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2000
    Location
    U.K
    Posts
    25

    Directory filechooser

    Hi,

    I'm trying to write a filechooser that will let the user select a directory. I'm using DIRECTORIES_ONLY but the problem is that if a directory is highlighted and then selected the JFileChooser opens that directory instead of closing and passing the path to my string variable.

    Does anyone know what I'm doing wrong?

    Thanks in advance


  2. #2
    Join Date
    Mar 2000
    Posts
    123

    Re: Directory filechooser

    Look here:
    http://forum.java.sun.com/read/16788...jmikfUAAAvm#LR
    If not what you need...search.java.sun.com is good engine, just enter chooser, maybe you'll find more hints there.

    I am looking for info on how to enable the list/detail buttons in the chooser if you can help. Thanks.


  3. #3
    Join Date
    Aug 2000
    Location
    U.K
    Posts
    25

    Re: Directory filechooser

    Thanks for the help, sorry I can't help you with your problem.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured