?
=?iso-8859-1?q?Andr=E9_Wagner?=
Hello,
I'm loading classes during the execution of a applet, like this:
ClassLoader cl = getClass().getClassLoader();
Class c = cl.loadClass(className);
MyObject o = (MyObject)c.newInstance();
It works fine, but if the class is big, the applet execution hangs
until the whole class is downloaded from the server and loaded. Is
there any way I can download the class (showing the user a progressbar
for that) and load the bytecode? I tried using the defineClass method,
but I can't overwrite in the applet class loader it because of the
applet security restrictions.
Thank you in advance,
André
I'm loading classes during the execution of a applet, like this:
ClassLoader cl = getClass().getClassLoader();
Class c = cl.loadClass(className);
MyObject o = (MyObject)c.newInstance();
It works fine, but if the class is big, the applet execution hangs
until the whole class is downloaded from the server and loaded. Is
there any way I can download the class (showing the user a progressbar
for that) and load the bytecode? I tried using the defineClass method,
but I can't overwrite in the applet class loader it because of the
applet security restrictions.
Thank you in advance,
André