Directory

← Back

AppletIntegration

Java applet integration helpers for your Vaadin application

Author

Rating

Popularity

<100

This add-on takes care of most of the technical details related to Java applet integration to a Vaadin application.

The package includes a base Java applet class that implements threaded communication with GWT component as well as base widget and server-side API to embed the applet.

AbstractApplet: A base class for an applet. Implements a threaded JavaScript communication mechanism.

VAppletIntegration: Client-side Applet integration base for embedding and communicating with an applet.

AppletIntegration: Server-side applet integration class. This is intended to be subclassed to integrate a custom applet to your Vaadin application. Implements the server API for applet communication.

Remember, that to implement a privileged applet you need sign the applet jar. For example use case see the Screenshot add-on.

Sample code

        AppletIntegration applet = new AppletIntegration() {

            private static final long serialVersionUID = 1L;

            @Override
            public void attach() {
                setAppletArchives(Arrays.asList(new String[] { "Othello.jar" }));
                setCodebase("http://www.w3.org/People/mimasa/test/object/java/applets/");
                setAppletClass("Othello.class");
                setWidth("800px");
                setHeight("500px");

            }
        };
        mainWindow.addComponent(applet);

        // Sample applet from: http://www.w3.org/People/mimasa/test/object/java/

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Fixed a possible NPE problem in Vaadin 6.6 series.

Released
2011-08-10
Maturity
BETA
License
Apache License 2.0

Compatibility

Framework
Vaadin 6.4+
Vaadin 6.0+ in 1.1.4
Vaadin 6.2+ in 1.0.3
Browser
Internet Explorer
Internet Explorer
Firefox
Safari

AppletIntegration - Vaadin Add-on Directory

Java applet integration helpers for your Vaadin application AppletIntegration - Vaadin Add-on Directory
This add-on takes care of most of the technical details related to Java applet integration to a Vaadin application. The package includes a base Java applet class that implements threaded communication with GWT component as well as base widget and server-side API to embed the applet. AbstractApplet: A base class for an applet. Implements a threaded JavaScript communication mechanism. VAppletIntegration: Client-side Applet integration base for embedding and communicating with an applet. AppletIntegration: Server-side applet integration class. This is intended to be subclassed to integrate a custom applet to your Vaadin application. Implements the server API for applet communication. Remember, that to implement a privileged applet you need sign the applet jar. For example use case see the Screenshot add-on.
Online