how to insert this piece of code in applets
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, February 10, 2006 05:01 AM


File[] roots = File.listRoots();
for (int i=0; i
System.out.println(roots[i]);
}
how to write this code in applets, i want to see the output in applet window. plz advice asap

thanks in advance
by
raja

Re: how to insert this piece of code in applets

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, February 11, 2006 03:56 PM

I don't think you can access the local filesystem in an applet, not unless you are signing it and have an appropriate policy on the local JVM?

Re: how to insert this piece of code in applets

Posted By:   ankush_purwar  
Posted On:   Friday, February 10, 2006 07:34 PM

Try to capture the value of roots[i] in some string and display it on applet pane using drawString() api. May be you have to add some scrollpane in your applet.
About | Sitemap | Contact