IntelliJ Java IDE
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes file chooser is acting strangely Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "file chooser is acting strangely" Watch "file chooser is acting strangely" New topic
Author

file chooser is acting strangely

Nathan Daniels
Greenhorn

Joined: May 03, 2001
Posts: 21
Hi,
My app has been running fine, then I decided to install a security manager on both my gui and server, and I am requiring the a policy file in the command lines of both client and server.
What is happening is that for some strange reason, when I ask for the file chooser in the gui, it attempts to read the a: drive first, even though, I instantiated the file chooser to start on a specific directory. I get an error message from java.exe that it could not read the a: drive and if I click cancel, I get my file chooser dialog. The same code is in the server, but there the file chooser behaves as it should by opening in the directory specified. Has anyone ever ran into this problem before? This only started happening after installing the security manager. Any clues would greatly reduce my stress level right now
Thanks,
Nate
Emerson Dunne
Greenhorn

Joined: Oct 19, 2000
Posts: 28
Nathan, can you post your policy file?
Nathan Daniels
Greenhorn

Joined: May 03, 2001
Posts: 21
I tried both a policy file that grants all permission and one that grants permissions to specific ports. Nothing different than you have normally seen posted here. Besides, either policy file works on the server. The code is the same on the client, but I only get my file chooser in the specified directory after I cancelled out of the java.exe error message. I am getting to the point, where I have to decide if a security manager on the client is really necessary for the purpose of this assignment. Any thoughts and/or arguments on this subject??
Rohini Sulatycki
Greenhorn

Joined: Jun 07, 2001
Posts: 5
Have you resolved this problem? I am getting the same error...

Originally posted by Nathan Daniels:
I tried both a policy file that grants all permission and one that grants permissions to specific ports. Nothing different than you have normally seen posted here. Besides, either policy file works on the server. The code is the same on the client, but I only get my file chooser in the specified directory after I cancelled out of the java.exe error message. I am getting to the point, where I have to decide if a security manager on the client is really necessary for the purpose of this assignment. Any thoughts and/or arguments on this subject??

 
 
subject: file chooser is acting strangely
 
Threads others viewed
Passed With 141/155 (~91%)
Dynamic connection mode changing
Policy file and RMISecurityManager
Location of db.db
NX: Questions about properties and security manager.
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture