Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

How to use Java Applets in your HTML

Thu Jun 28, 2007 5:20 am

Java Applets
------------------


To define a java applet in an HTML file, use the following HTML tags:

html code
<APPLET CODE="YourApplet.class" WIDTH="theWidth" HEIGHT="theHeight"></APPLET>


To make a *.class file an Applet, have your class extend JApplet and use the code. Make sure you don't have a main() method.
Examples of Applet usage :
java/jframe-on-applet-t385.html
java/snake-2d-applet-t352.html ( Live Applet JDK 5 -6 ) )
java/ball-sticker-applet-t673.html ( Live Applet JDK 5-6 )



Post a reply
  Related Posts  to : How to use Java Applets in your HTML
 Java Applets used for send sms     -  
 How to connect database with Applets     -  
 What is the terms applets and servlets mean?     -  
 posting from java to html     -  
 insert information in html file with java     -  
 What are PHP,PSD to HTML ?     -  
 dfn html tag usage     -  
 I need help with a html code     -  
 How to use HTML with JavaScript     -  
 HTML Tags -2     -  

Topic Tags

Java Applet