JFileChooser and FileSystemView

  • Thread starter Christian Bongiorno
  • Start date
C

Christian Bongiorno

Ok, I am hoping someone can shed a lot of light on the combination use
of these two.

I am trying to hook an ftp session into a JFileChooser through use of
a FileSystemView -- I get wierd results and everything I read and see
is telling me this thing was meant to work strictly on a windows
platform. (All the documentation refers to windows file structures)

As an example: My FTP interface correctly returns a all the
directories in the login directory, but none of them shows up in the
dialog window. I only get my "root" '/' and 'P:\' in the roots chooser
-- which brings me to problem 2

I have a drive mounted as P:\ (and a C,D,and Z drive). I have a
Breakpoint everywhere in my code that has a super. so that if "super"
is returning something containing this 'P:\' mount, I should will know
about it (I even have sysout statements and those methods never get
called).

When I set breakpoints in the JFileChooser it turns out that an event
is being fired for the JComboBox with the directories (top combobox)
and the "dir" being selected is P: (which it then wants to know if it
is traversable). How did a 'P:\' get in there?? It could be my doing,
but then again, why not my other drives?

Clearly I am doing somethings wrong -- but it isn't clear to me how
this thing wants to behave: Does it want to query for info on the fly
or does it want the entire directory structure beforehand?

JFileChooser seems extremely integrated with the windows file system
and makes use of a com.sun class called ShellFolder

Some insight would help

Christian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top