Greg Guerin wrote at 1:09 PM on Tuesday, September 28, 2004:
"Dean Snyder" <email@hidden> wrote:
I have an applet that is essentially a viewer for a certain custom
file
type. It appears that a new instance of the same applet is loaded for
each of several of these custom files sprinkled around a single web
page.
Is it possible to have just one applet load and use this single
applet to
view several of these images on a single web page? I suspect that
would
save both a lot of download time and a lot of memory.
It would have to be a single Applet managing all the views inside its
own
boundaries. Each applet is an independent component on a web page.
Every
applet has its own context and classloader, for security reasons.
Sharing
would violate that security, or at least complicate it.
However, you might try using the extensions facility of JAR-files, or
perhaps the Class-Path attribute:
<http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html#Main
Attributes>
Is there a way to use a tiny stub applet that would appear multiple
times
on a web page, whose only purpose would be to load and invoke only one
single java "library" that does all the real work?
Respectfully,
Dean A. Snyder
Assistant Research Scholar
Manager, Digital Hammurabi Project
Computer Science Department
Whiting School of Engineering
218C New Engineering Building
3400 North Charles Street
Johns Hopkins University
Baltimore, Maryland, USA 21218
office: 410 516-6850
cell: 717 817-4897
www.jhu.edu/digitalhammurabi
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden