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 #9 for applets within <applet>: absolute width

Applets: APPLET (absolute width)

This test case tests the <applet> tag with its mandatory width attribute which, similar to the <img> tag, explicitly specifies the width of the java applet. the width attribute can either be an absolute width using an integer value of pixels or a relative width 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 widths
(using <applet codebase=class pathname code="class name" width=integer value> </applet>)

Java Applet Dimensions Scaled Down (Reverse Scaling)

Original applet

Object width="300"

Object width="200"

Object width="150"

Object width="100"