how to expand the memory when running an applet?


I wrote an applet using visad tool kits. But I encounter a
java.lang.OutofMemoryError when running the applet ?
As you know, we could do

java -Xmx<size>

to set the maximum java heap size. Is there similar thing to do when
running an applet?

Thanks for your help.