goURL
This applet gets the Web site names and URLs from the applet parameters and allows visitors to click on a site from the drop down box; the applet then takes them to the selected site instantly. While you could use simple HTML/JavaScript to do the same thing, this applet is an excellent project with which to learn Java. Since you have the source, you can practice adding your own parameters to the applet, such as background color, background image, etc.
How To Use:
Download gourl.zip (2KB) and unzip with a compression utility.
Java Source: source.html
Sample HTML Source:
<applet code="goURL.class" width=130 height=30>
<PARAM name="page0" value="Java Homepage">
<PARAM name="url0" value="http://www.javasoft.com">
<PARAM name="page1" value="Java Boutique">
<PARAM name="url1" value="http://www.javaboutique.com">
<PARAM name="page2" value="Sun Homepage">
<PARAM name="url2" value="http://www.sun.com">
<PARAM name="page3" value="Java World">
<PARAM name="url3" value="http://www.javaworld.com">
<PARAM name="page4" value="Cafe Au Lait">
<PARAM name="url4" value="http://sunsite.unc.edu/javafaq/">
<PARAM name="page5" value="WebDeveloper.com">
<PARAM name="url5" value="http://www.webdeveloper.com">
</applet>
Status: free
Author: Michael Shipp
Upload Date: March 19, 1998
New on the Java Boutique:
New Review:
Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling
API boasts simplicity, ease-of-integration, a well-rounded feature
set, and it's free!
New Applet:
Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA
sequences into three useful formats.
Elsewhere on internet.com:
WebDeveloper Java
Lots of Java information on webdeveloper.com
WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.
ScriptSearch Java
Hundreds of free Java code files to download.
jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.
|