CSE 4510: Lab Assignment #9

Due: Friday March 26, 1998

The Task

You are to write a Java applet DefinitionApplet that finds a definition for a term but jumping to a WWW page. Two sources of definitions exist on the WWW. One has the form:

http://www.whatis.com/term.htm
another has the form:
http://www.techweb.com/encyclopedia/defineterm?term=term
where term is to be replaced with the word to be defined. The applet displays the term to be defined and when the user clicks on the applet the browser jumps to the appropriate WWW document.

It is to be used like this:

<applet code=DefinitionApplet width=200 height=50>
  <param name="term" value="ACM">
</applet>

Have the applet print the URL in the status bar.

Optional refinements: center the term in the applet window use a combo box so that the user can select which source to use.

Or, make communicating applets, one that selects the source of definitions and another applet that displays the term.

Helpful stuff

Turning it in

Use the following command on maelstrom or zach

~ryan/bin/mfiles ryan@cs.fit.edu "cse4510/lab09" files ...

Your applet must be launched when the command appletviewer DefinitionApplet.java is given. In other words, put an applet tag in your source code. Be sure to put your name in comments somewhere at the beginning of each file. You may turn in the assignment more than once. All but the last submission will be ignored. With luck the submissions for this lab exercise will be found in the file lab09-sub.txt.


Ryan Stansifer <ryan@cs.fit.edu>
Last modified: Wed Mar 31 08:48:15 EST 1999