• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

JFileChooser and SecurityManager

 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I've hit a problem with JFileChooser and would appreciate some advice.
I've implemented JFileChooser in my Client to select the db.db file location and it's working fine.
However, implementing the same thing is the Server, the JFileChooser keep trying to read A: drive even if I specify
new JFileChooser(".");
I believe it's due to the SecurityManager installed in the Server.
Can anyone advice how do I get around the problem?
Thanks.

Han Ming
 
HanMing Low
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Just like to post here for a workaround to the problem.
Apparently, there seems to be a bug in JDK for Windows that caused the problem and the workaround is discussed in the java.sun.com forum.
Below is the link to it.
http://forum.java.sun.com/thread.jsp?forum=57&thread=137489
I've tried and it works for me.
Hope this helps.

Han Ming
 
Grow your own food... or this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic