2 Replies Latest reply: Feb 7, 2004 11:23 PM by 807582 RSS

    JFileChooser

    807582
      Hi All,

      I am working with javax.swing.JFileChooser.
      Its fine, But I want to disable the "File Name" field in the FileChooser that I am go to view. That means I must be able to choose a file only, should not be allowed to type.

      Can some give the clue.

      Thak You
      Madan
        • 1. Re: JFileChooser
          807582
          You could always build your own component...
          • 2. Re: JFileChooser
            807582
            The JFileChooser component is fairly inflexible. It serves it's purpose. But that's about it. For example, set it so that only directories can be selected, files are not listed. Why then, does the Files of Type and FileName entry box still appear? Why can't those be hidden? It's pretty lame.

            I am working on a new file choosing component with much more capabilities. No idea when I'll have it done though.