Analog Clock
CLOCK APPLET http://java.sun.com/openstudio/applets/clock.html The way this one is: <applet code="JavaClock.class" width="150" height="150"> <param name="delay" value="100"> <param name="link" value="http://java.sun.com/"> <param name="border" value="5"> <param name="nradius" value="80"> <param name="cfont" value="TimesRoman|BOLD|18"> <param name="bgcolor" value="ffffff"> <param name="shcolor" value="ff0000"> <param name="mhcolor" value="00ff00"> <param name="hhcolor" value="0000ff"> <param name="ccolor" value="dddddd"> <param name="ncolor" value="000000"> </applet> Download Now (This file contains all the applets - download only once) 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> Used these class files PARAMP~1 CLA 2,553 12-07-98 11:10a ParamParser.class JAVACL~1 CLA 3,561 12-07-98 11:10a JavaClock.class ANALOG~1 CLA 3,292 12-07-98 11:10a AnalogClock.class CUSTOM~1 CLA 1,224 12-07-98 11:10a CustomParser.class 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. Copyright © 1995-2002 Sun Microsystems, Inc. All Rights Reserved. Terms of Use. Privacy Policy. Free for NonComercal use |