Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

JFileChooser

  Asked By: Bailey    Date: Jul 04    Category: Java    Views: 7130
  

The j2sdk1.4.X JFileChooser pops up an icon for "My Network Places."
However, when you click on a node, more often than not, you see
absolutely nothing—no folders, no files. Has anybody figured out a
way to actually select a file inside of My Network Places?

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Opal Alexander     Answered On: Jul 04

My opinion about JFileChooser, I have mostly used the
Java SDK 1.3 standalone and with Borland JBuilder IDE.
What is fun by the way is that JBuilder, written in
Java uses the JFiulChooser class, performing very
poorly everytime i want to open up a (java) file. When
it's first installed it works (JBuilder), then it
won't display anything, as you point out, no folders,
no files, but you can still manyally enter the
filepath in the little textField, or whatever it is.

My advice (though I'm still not  that advanced as a lot
of you out there) is to use FileHander (from the AWT
class set). It's a bit smaller and looks more
Windows-like, probably better on the Mac as well,
where I have heard from at least on Mac entusiast that
JFileChooser looks awful.

There is some exceptions to catch in FileHandler
though, if you try to read a "" file  for example.

 
Answer #2    Answered By: Coleman Smith     Answered On: Jul 04

When using JFileChooser on Windows, if displays the drive letter in
the drive pull down.

Is there a way to get it to display the drive and the machine/share
name that it is mapped to?

So rather than just displaying

a:\
c:\
d:\

It will show something like

a:\ (3 1/2 Floppy)
c:\ (System)
d:\ (ShareName on MachineName)

or something similar
We aren't too bothered by labels for a: and c: drives, but are for
the other mapped drives.

 
Didn't find what you were looking for? Find more on JFileChooser Or get search suggestion and latest updates.




Tagged: