• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JFileChooser and SecurityManager

 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic