Use the necessary tags to create a basic HTML page that will contain all of application pieces (applets, helper applets, buttons, scripts etc.)
For example:
<HTML>
<HEAD>
<TITLE>Application
</TITLE>
</HEAD>
<BODY>
</BODY>
</HTML>
Introducing Framesets
Your application may use framesets. Creating framest tags
For example:
<framesets cols="x%, *">
<frame src="file1.html" name="filename">
<frame src="file2.html" name="filename">
</framesets>
Where x stands for the percent of the overall space the column frame will take and * stands for the remaining space. You may introduce as many frames as your application requires. Frames may also be set horizontally by substituting "cols" for "rows". For more information on framets consult an HTML reference.
Introducing Tables
Your application may use tables. Creating tables:
<TABLE BORDER CELL PADDING=2 CELL SPACING=2 WIDTH="100%">
<TR ALIGN=center>
<TD>item 1
</TD>
<TD>item 2
</TD>
</TR>
<TR ALIGN=center>
<TD COLSPAN=2>item 3
</TD >
</TR >
</TABLE>
This table will look as follows:
item 1 | item 2 |
item 3 |
<TR></TR>
tags define a row in the table while the <<TD></TD>
tags define the columns within the row. The information written or embedded within the table cells is set between the tags. The ALIGN specifies where the cell information is printed (in this case aligned along the center). The COLSPAN allows a cell to occupy the space of however many are specified (in this case two).
Embedding Buttons and Dialog Boxes
Buttons are embedded in your HTML with the following tags:
<INPUT type=button name="mybutton" value="mybutton" onClick="buttonAction()">
<INPUT type="checkBox" name="myCheckBox" value="myCheckBox" onClick="buttonAction()">
<INPUT name="text" size="50" onChange="buttonAction()">
<INPUT name="list" size="1" onChange="buttonAction()">
The function set in onClick or onChange is the function which will begin to run when the respective action is performed (button clicked, text box changed, check box checked). The value defined in the tag will be printed on the button or next to the check box.
The Applet Tag
Java Applets are incorporated by including an APPLET tag in the HTML page. An Applet tags is constructed as follows:
<APPLET
CODE="name of java class file"
CODEBASE="data path of class files"
WIDTH=width of applet in pixels
HEIGHT=height of applet in pixels
NAME="name given to applet on the page">
<PARAM NAME="name of parameter to be selected" VALUE="value chosen for parameter">
</APPLET>
If an applet has no user interface the width and the height values are set to 1 (minimum). This makes the applet invisible on the web page. Applets can also be imbedded within objects such as tables, or frames. Remember: