I have a big Java applet (about 7 MB). It’s an old and big project that’s made of several (7) smaller projects all bundled-up in single jar using “fatjar”. Since applet is an old technology and i have problems with functionality (my applet is not signed) can you tell me exact benefits of switching my code to JWS (Java web start) and is the switch worth it?
If i switch to JWS will i be able to split my applet into several jar’s that will be loaded and used by main jar (much like dlls)?
My goal is to split my current applet into several (7) separate jars. That way when i change something in one project, i would upload only one small jar containing changed project instead of whole, big, fatjared applet.
If JWS isn’t much better then applets, can you suggest me some other technology that use SWING? Rewriting (and separating into MVC) the whole thing so it uses HTML or something else is a no-go. Almost all controls my applet is using are special custom controls that extend standard SWING controls.
JFrame.JFrameusing JWS.In answer to your specific questions:
Firstly, yes it is worth it.
Immediately any of the problems you might experience with applet/browser/JVM interaction are solved. The free floating app. is resizable, and more easily customizable as to frame title etc. The user can continue using the app. when the browser is closed. They can open the app. when offline, if it is configured to allow that.
In regard to the Jar updates, quoting the JWS tag Wiki:
Onto..
Yes. As many as needed, see above for the bare details.
I’d highly recommend to use JWS/Swing. So no, I do not have any other suggestions (that would approach being that good with as little effort).
Go ahead, try it out. I think you and your users will enjoy the change.