You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



You are here: Test Case Description for applets within <applet> tag > Test Case #6 for applets within <applet>: absolute height

Applets: APPLET (absolute height)

This test case tests the <applet> tag with its mandatory height attribute which, similar to the <img> tag, explicitly specifies the height of the java applet. The height attribute can either be an absolute height using an integer value of pixels or a relative height using a relative percentage value.

Test Instructions

  1. Verify that the java applet is maintained when you minimize/maximize the screen.
  2. Verify that the java applet is maintained when you re-size left & right the screen.
  3. Verify that the java applet is maintained when you re-size top & bottom the screen.
  4. Verify re-draw takes place correctly after maximizing the screen.
  5. Verify reload works.

Test Case #1: sample java applet dimension scaling using absolute heights
(using <applet codebase=class pathname code="class name" height=integer value> </applet>)

Java Applet Dimensions Scaled Down (Reverse Scaling)

Original applet

Object height="65"

Object height="50"

Applet height="25"

Applet height="15"