• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can we make an applet to access local harddisk(sys resources)

 
Vishnu Murthy
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to create an applet which does the job similar to the windows explore. i.e when the applet first loads it should show all the drives present on system. now when the user clicks on the C:\ he should be able to see all the folders contained in it and if he clicks on the folder should be able to see the contents of the folder. this applet should be generic.
i think i have read some where that an applet cannot access system resouces if this is true? then how can i achieve my goal.
i would be thankful if someone sends me the sample code.
thank you
vishnu
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vishnu,
You are correct, an applet cannot access the local files/directorys (without some major help... signed applets, capability classes, etc.), and overall applets are not meant for that sort of program... you should not try to write an applet that does what you described, why should the user need to run a web page to look at their local files? However, you should be able to write an application that does what you described with little problem...
HTH,
-Nate
 
Srinath R
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Nathan
well ur are right bout the fact that an applet is not ment for, the kind of job described by Vishnu but suppose their is a requitement then how to go bout it,the question seems very intresting i would be happy if some body puts some thought on it.
even a sample code will be very helpful, as desiered by vishnu.
srinath
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic