JFileChoose in JApplet

B

Bokc

Hi,

I need to use a JFileChoose in a JApplet, but it not works.
Do you know why?
Do you have alternative solution to select a file?

Thx,

Bokc
 
J

John Davison

Bokc said:
Hi,

I need to use a JFileChoose in a JApplet, but it not works.
Do you know why?
Do you have alternative solution to select a file?

Thx,

Bokc

You cannot access the filesystem from an applet unless you sign your
applet (jar) with jarsigner.

Java run from an Applet runs in a "sandbox", and accessing the
filesystem is one of the many things you cannot do from inside this
"sandbox" unless you sign your code.

- john
 
A

Andrew Thompson

I need to use a JFileChoose in a JApplet, but it not works.

Please be as precise as you can
<http://www.physci.org/codes/javafaq.jsp#exact>

If writing applets, you need to find the 'Java
console' as well. It gives lots more information.
Do you know why?

Do you have alternative solution to select a file?

Jar <http://www.physci.org/codes/javafaq.jsp#jar>
and sign the applet, or reduce the security settings
of the browser for testing.

HTH

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top