Applets
Integre Technical Publishing

   CODEBASE="java/" MAYSCRIPT>
//////////////////////////////////////////////////////
Here s the API:
It s small enough that you could include it in your JAR if you d like. But most users will even have it on
their systems.
It says "Netscape," but I know that IE understands it fine.
  
Greg Faron
Integre Technical Publishing
 Q: Is it possible to run an Applet inside a JAVA application?
Answer: An applet is just another class that can be instantiated:
Applet myApplet = new MyApplet();
where MyApplet is the name of the applet class that you have written and then added to a container of
some kind
myFrame.add(myApplet);
..but you need explicitly call the init() method that a browser would normally call "behind the scenes":
myApplet.init();
  
artntek
(c)1999, 2000, 2001. JavaFAQ.nu. All rights reserved worldwide.
This document is free for distribution, you can send it to everybody who is interested in Java.
This document can not be changed, either in whole or in part
without the express written permission of the publisher.
All questions please 
mailto:info@javafaq.nu
file:///F|/a_jsite/350_tips/applets.htm (9 of 9) [2001 07 08 11:24:47]






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java web hosting

 

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved