I haven't done it in an applet, but assuming the permissions work out you can use <code>File.listRoots()</code>, as in
<pre><code>
import java.io.*;
public class Rooter {
public static void main(
String[] args ) {
File f[] = File.listRoots();
for (int i = 0; i < f.length; i++) {
System.out.println( f[i] );
//not f[i].getName()
}
}
}
</code></pre>
Notice that <code>getName()</code> returns an empty string in this case, so I just used <code>toString()</code> implicitly - I sense that's telling me something about the nature of a <code>File</code> object but it's too early to figure out what. More
coffee...