Wrapplet demo

Demos of the Wrapplet used in a variety of forms.

Load and configure main applet

The Wrapplet loading a second TestApplet if the JRE version is 1.2 or better.

This page requires the Java Plug-In! Get it from www.java.com.   This page requires the Java Plug-In! Get it from www.java.com.

Type some text in the form and submit it to see that text appear in the (red bordered) applet JTextArea. This behavior is provided by the Wrapplet having the allow.query.param parameter added. This then enables functionality to override the 'text' parameter of the applet as specified in HTML, with the equivalent query parameter. If no query parameter is present, the parameter specified in the applet element will be used.

The second instance of the applet (with green border) specifies no allow.query.param parameter, and the default text should remain constant no matter what the URL query is.

Deployers should consider carefully before allowing the applet's HTML parameters to be changed in the URL. The two main concerns are security, and separation of parameters for multiple applets.

Fall-back to..

These calls specify a targetVersion of 3.6, so they should be assured of demonstrating the fall-back strategies for a good while yet.

..An error label

When the minimum version cannot be met, and no fallbackApplet is named, the Wrapplet will display a simple message. Note that the message might become too long for an applet with a small width. The width specified for this applet is 400px.

This page requires the Java Plug-In! Get it from www.java.com.

A java.awt.Label is used for a version 1.1 JRE, while a javax.swing.JLabel is used for 1.2+ JREs.

..Another applet

This call adds the minimal form of JumpButton. To succeed, the jumbputton.jar (or whatever archive contains the alternate applet) must be added to the archive attribute of the applet element (which then makes the Wrapplet, guest applet and the JumpButton all on the runtime classpath).

This page requires the Java Plug-In! Get it from www.java.com.

As an alternative to adding JumpButton, a deployer might use VersionCheck, which upon finding inadequate Java, would redirect automatically to the help/download page. The advantage of using the simpler JumpButton is that while VersionCheck 'breaks the back button', the JumpButton does not, since it places the redirect at the user's discretion (and specific action).

Float applet

This applet is floatable..

This page requires the Java Plug-In! Get it from www.java.com.
© 2003, 2004, 2005, 2006, 2007, 2008 by Andrew Thompson. All rights reserved.
Web hosting compliments of
Java Web Hosting
Wrapplet demo

Wrapplet demo

Demos of the Wrapplet used in a variety of forms.

Load and configure main applet

The Wrapplet loading a second TestApplet if the JRE version is 1.2 or better.

This page requires the Java Plug-In! Get it from www.java.com.   This page requires the Java Plug-In! Get it from www.java.com.

Type some text in the form and submit it to see that text appear in the (red bordered) applet JTextArea. This behavior is provided by the Wrapplet having the allow.query.param parameter added. This then enables functionality to override the 'text' parameter of the applet as specified in HTML, with the equivalent query parameter. If no query parameter is present, the parameter specified in the applet element will be used.

The second instance of the applet (with green border) specifies no allow.query.param parameter, and the default text should remain constant no matter what the URL query is.

Deployers should consider carefully before allowing the applet's HTML parameters to be changed in the URL. The two main concerns are security, and separation of parameters for multiple applets.

Fall-back to..

These calls specify a targetVersion of 3.6, so they should be assured of demonstrating the fall-back strategies for a good while yet.

..An error label

When the minimum version cannot be met, and no fallbackApplet is named, the Wrapplet will display a simple message. Note that the message might become too long for an applet with a small width. The width specified for this applet is 400px.

This page requires the Java Plug-In! Get it from www.java.com.

A java.awt.Label is used for a version 1.1 JRE, while a javax.swing.JLabel is used for 1.2+ JREs.

..Another applet

This call adds the minimal form of JumpButton. To succeed, the jumbputton.jar (or whatever archive contains the alternate applet) must be added to the archive attribute of the applet element (which then makes the Wrapplet, guest applet and the JumpButton all on the runtime classpath).

This page requires the Java Plug-In! Get it from www.java.com.

As an alternative to adding JumpButton, a deployer might use VersionCheck, which upon finding inadequate Java, would redirect automatically to the help/download page. The advantage of using the simpler JumpButton is that while VersionCheck 'breaks the back button', the JumpButton does not, since it places the redirect at the user's discretion (and specific action).

Float applet

This applet is floatable..

This page requires the Java Plug-In! Get it from www.java.com.
© 2003-2010 by Andrew Thompson. All rights reserved.
Web hosting compliments of Java Web Hosting.
Java Web Hosting