<HTML>
<HEAD>

<!-- Change the Title please -->
<TITLE>AWT MAGERCISES</TITLE>
</HEAD>

<!-- BODY-TEMPLATE -->

<!-- NAVBAR-TEMPLATE -->

<!-- PAGETOP-TEMPLATE -->
<TR>
<TD WIDTH=452 ALIGN=RIGHT>
<img src=Exercise/images/Exercise.gif>
</TD>
</TR>
<!--- Please put everything you want here to the right of the navbar.
	<TR>
	<TD>
	This is the MAIN TABLE.  Put data HERE unless you need a table that
 	REQUIRES the full screen width, i.e. an event schedule table.
	Add a new table row for the data.

	If the text needs to be in two columns, use this <TR> structure:
	Make the width=452
	<TR>
	<TD WIDTH=226>
	</TD>
	<TD WIDTH=226>
	</TD>
	</TR>

	</TD>
	</TR>
--->

<TR>
<TD width=452>
<FONT SIZE=+2>AWT EXERCISES</FONT>
<P>
<p>
The AWT Exercises represent the lab component of the AWT Short Course; the exercises lead you through the construction of a simple graphical interface called <tt>RegistrationForm</tt> and ask you to implement a number of techniques commonly used during GUI development.  There are 24 exercises, 10 of which are directly used to construct <tt>RegistrationForm</tt>.  See <a href="MageHelp.html">Exercise Help</a>.

<p>
To complete the exercises, the following methodology is advisable:

<ul>
<li>
Create a directory on your machine where you will place all of the Java and byte code files (<tt>.class</tt>).

<blockquote>
Note: At the cost of having to set the CLASSPATH environment variable and some added complexity, you can place each solution in a separate directory.  If you follow the suggested symbol-naming scheme, your class names will not conflict even if all your files are in the same directory.
</blockquote>

<li>
Download <a href="/applets/magelang/AWT-Training/classes/RatioLayout.class"><tt>RatioLayout.class</tt></a> into the directory you have created.  You will need this layout manager for some of the exercises.

<blockquote>
Note: Depending on your browser MIME type settings, simply clicking on the RatioLayout.class link may not force the browser to save the file (it may try to view the .class file).  In most browsers, you can choose "Save Link As..." by clicking with the right mouse button.
</blockquote>

<p>
<li>
You can download <a href="Exercise/solution.zip"><tt>solution.zip</tt></a> or <a href="Exercise/solution.tar"><tt>solution.tar</tt></a>, which contain the complete Java source for all Exercises as well as the <tt>.class</tt> files.  Unzipping or untarring the files places the contents in the current directory.  You can test your partial solution to the main exercise <tt>RegistrationForm</tt> by using some of the prepared <tt>.class</tt> files.


<blockquote>
Note: Depending on your browser MIME type settings, simply clicking on the zip or tar file links may not force the browser to save the files (it may try to view them).  In most browsers, you can choose "Save Link As..." by clicking with the right mouse button.
</blockquote>

<li>
If you are using a Java development environment, create a project for each exercise because they are complete, executable applets.  The project for the main <tt>RegistrationForm</tt> applet includes many of the other exercise Java files to form a working applet.

</ul>

<p>
Begin the exercises at <a
href="Exercise/RegistrationForm/index.html"><tt>RegistrationForm</tt></a>,
which directs you to complete the other exercises required to build
the main applet--<tt>RegistrationForm</tt>.  It is suggested that you read the
exercises from the top down, but code from the bottom up; in other words,
read the main exgercise, but code and test the subexercises first before
attempting <tt>RegistrationForm</tt>.

<p>
Each exercise has the following buttons:
<ul>
<li><b>Expected behavior</b>: Launches an applet illustrating the required behavior from your applet.
<li><b>Table of contents</b>: Displays the table of contents for the course notes and the list of exercises.
<li><b>Help</b>: Gives you help on the current exercise (an annotated solution).
<li><b>Solution</b>: The <tt>&ltapplet></tt> tag and Java source resulting in the expected behavior.
</ul>

<p>
For more information on exercises, see <a href="MageHelp.html">Exercise Help</a>.
<p>
Note: If you want help on an individual and more personal basis, you can access the Java Developer Connection "<a href="/developer/discussForum/js_discschedule1.html">Training Office Hours</a>" when you can direct your questions online to the <em>AWT Short Course</em> instructor.


</TD>
</TR>
</TABLE>


<!--
	This table is for everything that goes under the
	navbar, it is a full screen table. Use this table
        ONLY for full screen width tables like an event
        hourly schedule.
-->

<br clear=left>

</BODY>
</HTML>
