File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Applet Program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Applet Program" Watch "Applet Program" New topic

Applet Program

chinna ram

Joined: Jul 16, 2002
Posts: 12
Hello all,
Is is possible to write a java applet program which will have "Browse" button.By clicking browse button we should be able to select a file from a local machine.
(This Browse button is just like when we are sending an email when we want to attach a file we select the file by clicking the browse button.)
If we can do that please suggest me how to write that code.
Thank You,

Dare To Dream<br />SCJP2<br />SCWCD<br />CCNA<br />ORACLE 8i(Exam 1Z0-001)
Grishma Dube
Ranch Hand

Joined: Jul 01, 2003
Posts: 275
First of all u must be knowing, the applets can not access local resources. But yes, u can do it by singed or trusted applet.
Gayathri Prasad
Ranch Hand

Joined: Jun 25, 2003
Posts: 116
The Sandbox security model of Applets never lets you access the resources on the hard disk becuas this is a potential threat. But Yes with signed applets u can..
I agree. Here's the link:
subject: Applet Program
It's not a secret anymore!