• Post Reply Bookmark Topic Watch Topic
  • New Topic

using jfilechooser  RSS feed

 
seetharaman jayaraman
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
how to use jfilechooser to select a file available in another computer of my LAN.
i used setFileSelectionMode(JFileChooser.FILES_ONLY);
with this statement, if i give 'c:' or any local/mapped drive names in text box, it lists the files properly and i can choose the file.
but, if i give the IP address of another system, i.e like '\\192.168.0.243', it simply accepts this (\\192.168.0.243) as filename and closes the file chooser dialog. if i type the ip address, the file chooser should list the shared drives in that system. how to do this?
thanking you.

Hi all, It's answered here:
http://forums.sun.com/thread.jspa?messageID=10484146

[ October 29, 2008: Message edited by: seetharaman jayaraman ]

[ October 29, 2008: Message edited by: seetharaman jayaraman ]
[edit]Corrected link. CR[/edit]
[ October 29, 2008: Message edited by: Campbell Ritchie ]
 
Campbell Ritchie
Marshal
Posts: 56529
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for telling us you have also posted on another forum. But you don't seem to have a full solution there.

You were looking for \\ip\c: there and not finding it. But will you actually find a drive letter if you set the JFileChooser to "FILES_ONLY?"
 
Campbell Ritchie
Marshal
Posts: 56529
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And if you get any answers here, be sure to post a link on the other forum, please.
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Campbell Ritchie:
And if you get any answers here, be sure to post a link on the other forum, please.

The other forums.
http://www.java-forums.org/awt-swing/12887-using-jfilechooser.html

edit Not the first time either, I remember the nic here and on the Sun forums.
[ October 29, 2008: Message edited by: Darryl Burke ]
 
seetharaman jayaraman
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Darryl Burke:

The other forums.
http://www.java-forums.org/awt-swing/12887-using-jfilechooser.html

edit Not the first time either, I remember the nic here and on the Sun forums.

[ October 29, 2008: Message edited by: Darryl Burke ]


but, no proper help or reply in all 3 forums. People who find the "cross posters", please spend your time also to find, get and post the solution in addition to police work!!! That will be fruitful and helpful to us.
 
Campbell Ritchie
Marshal
Posts: 56529
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You all have a point.
Darryl Burke doesn't like people who post on several websites. Although we don't prohibit that, I can see why it annoys him; it means duplication of effort.
Seetharaman Jayaraman hasn't got a full answer anywhere yet.

But please make sure not to be rude to one another.

I don't know what to suggest apart from losing the "FILES_ONLY" option.


Does anybody else know, please?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!