Clock
The Clock applet has the following parameters:
bgcolor The background color of the applet in RGB hexadecimal.
border The surrounding clock border in pixels.
ccolor The color of the clock in RGB hexadecimal.
cfont A "|" delimited string that represents the name, type (PLAIN, BOLD, ITALIC),
and the point size of the clock number font.
delay The delay between frames in milliseconds.
hhcolor The color of the hour hand in RGB hexadecimal.
link A URL to load if the applet is clicked.
mhcolor The color of the minute hand in RGB hexadecimal.
ncolor The color of the numbers in RGB hexadecimal.
nradius The radius in pixels at which to draw the clock numbers.
shcolor The color of the second hand in RGB hexadecimal.
For example:
<applet codebase="classes" code="JavaClock.class"
width="150" height="150" >
<param name="bgcolor" value="ffffff">
<param name="border" value="5">
<param name="ccolor" value="dddddd">
<param name="cfont" value="TimesRoman|BOLD|18">
<param name="delay" value="100">
<param name="hhcolor" value="0000ff">
<param name="link" value="http://java.sun.com/">
<param name="mhcolor" value="00ff00">
<param name="ncolor" value="000000">
<param name="nradius" value="80">
<param name="shcolor" value="ff0000">
</applet>
Displays a clock with a light blue background,
a black and gray dial, red second hand, green minute hand,
dark blue hour hand, and black numbers.
Back to the Clock applet page
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.
|