Re: JFileChooser



On Wed, 26 Apr 2006 14:54:55 +0800, marcodepe@xxxxxxxxxx wrote
(in article <1146034495.826398.24370@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>):

Hi,
i've got a problem with JFileChooser. I'd like to have a JFileChooser
in which it will be possible to present files following this format:

supposing to have a directory with these files

aaa.txt
aaa.doc
aaa.exe

bbb.txt
bbb.doc
bbb.exe

i'd like to presente only a list with 2 selectable files:
aaa.*
bbb.*


I tried an experiment with a custom FileView but i obtained this list
aaa.*
aaa.*
aaa.*
bbb.*
bbb.*
bbb.*

and selecting for example the first i obtained aaa.txt in the TextField

Is there a solution ?
Thanks


yes there is, but it seems an odd way to use a file chooser, if you had say
50 different types of extensions , why would you only want to choose 1 group
of files based on it's name?

Steve

--
NewsGuy.Com 30Gb $9.95 Carry Forward and On Demand Bandwidth
.



Relevant Pages

  • JFileChooser
    ... I'd like to have a JFileChooser ... in which it will be possible to present files following this format: ... supposing to have a directory with these files ... i'd like to presente only a list with 2 selectable files: ...
    (comp.lang.java.help)
  • Re: Image I/O Questions
    ... >> format of file that I've selected via a JFileChooser. ... all of it using ImageIO classes. ... file that may or may not be an image file, determines if it is a GIF, JPG, ...
    (comp.lang.java.help)
  • Re: Image I/O Questions
    ... > format of file that I've selected via a JFileChooser. ... A main goal of ImageIO seems to be reading an image without caring about its ... The following code prints out the format name ...
    (comp.lang.java.help)