Java

Java in Action Downloads Help Center

Help Resources

Search Java Help


How do I make applets work within Microsoft Internet Explorer 6?


This article applies to:
  • Platform(s): Windows XP, Windows 2003
  • Browser(s): Internet Explorer 6.x
  • Java version(s): All JRE Versions

SYMPTOMS

A recent update to Microsoft Internet Explorer 6 included a change that alters the way users interact with applets in the browser. With this change, users can no longer directly interact with applets by default.

Users are first required to manually activate the applet's user interface, before interacting with the applets. If the page has multiple applets, users have to activate each applet's user interface individually.

WORKAROUND

To create web pages that load interactive applets that respond immediately to user input, developers can use JavaScript programming language to load the applets from external script files.

Developers should not write script elements inline (for example, using the writeln function) with the main HTML page to load a control externally, because the loaded applet will behave as if it was loaded by the HTML document itself and will require activation. To ensure an applet is interactive when it is loaded, use one of the following techniques.

MORE TECHNICAL INFORMATION

http://java.sun.com/developer/technicalArticles/J2SE/Desktop/ieappletguide/

Select Language | Newsletter | About Java Technology | Partner with Us | Developers
Privacy | Terms of Use | Trademarks | License | Disclaimer | Support

Sun Microsystems