unc - Set JFileChooser current dir to remote dir -
unc - Set JFileChooser current dir to remote dir -
i have set current dir in jfilechooser remote dir(windows share), doesn't work.
jfilechooser chooser = new jfilechooser(); chooser.setcurrentdirectory(new file("\\\\192.168.11.11")); chooser.showsavedialog(null);
i found bug description: http://bugs.sun.com/view_bug.do;jsessionid=ad25b2513da86b421875051509357?bug_id=6741919, isn't fixed yet. way work around(i can't map dir)?
if set file path in constructor so:
fc=new jfilechooser("\\\\10.16.7.139\\errorlogs");
it works fine, although seems can't open root of server. if removed \errorlogs portion of string didn't work.
jfilechooser unc
Comments
Post a Comment