Well Java plugin and or Java webstart are the common way to do this.
But if you can't stand such requierement, here come a workaround:
This solution is compliant with the java plugin one.
Step one
Unzip the swing jar or rt.jar and put all the swing class on your http
server document root near your applet class.
Browser will just download needed class instead all swing package.

Step two
To optimize a bit you can look in your http web server'slog and gather all
requested swing class in your jar or a new one according that your browser
support multi Jar.

With this solution user will download a swing class but less than the 5Mb
swing jar file

Hope it help.

Mathias

----- Original Message -----
From: "Frauke Nonnenmacher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 30, 2001 10:21 AM
Subject: Re: How to include some libraries


> > Hi all! I'm working on a servlet-Applet Chat and i want the Applet to
> > run the gui under swing.. , the problem? Netscape and Explorer does
> > not come with swing support. The question-> how can i put the swing
> > classes in my project without making an 5MB applet???
>
> Good question. I've actually given up on using Swing in applets for
exactly
> that reason, but if there's a solution I'd be eager to hear it...
>
> Frauke
>
> Frauke Nonnemacher
> Fat Cat Cartoons
> http://www.fatcatoons.com
> The statements and opinions expressed here are my own and do
> notnecessarily represent those of the VEGA Group.
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to