| Including Java Applets on your Web Pages |
In this exercise, you will learn to add
Java applet to the HTML page.
This is a simple Java applet program. To
save this file, select File from the Menubar.
Select Save As
The file should be saved with the extension
of java. Now click the Save button to save the file.
Compile smallapplet.java program with the
Java compiler(javac). Press Enter key to compile.
Java compiler created a file called smallapplet.class.
The APPLET tag is used to start an applet
from both HTML document and applet viewer. An applet viewer
will execute each APPLET tag in a separate window, while web
browsers will allow many applets in a single page.
The PARAM tag allows you to specify applet
specific arguments in an HTML page. The APPLET tag in HTML
allows you to pass parameters to your applet. To retrieve
a parameter, use the getParameter() method.


Copyrights : Layout Galaxy All Rights Reserved
No part of this tutorial may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, electrostatic, magnetic tape, mechanical or otherwise, without prior permission in writing from Layout Galaxy.
|
|
|