# Digital Java Clocks - Updated February 8th, 1996

### Introduction

### Source Code

### Downloading and Using It

### More Applets Here

### Introduction

The following is a simple digital "LED" clock. Although you cannot change its size, you can configure the colours of the digits, the frame and the background. I have made a few modifications since this clock was published in December '95 in the hopes of making it a little more useful and easier to configure and setup.

Questions or comments to: John Criswick by e-mail to criswick@conveyor.com.

### Source code for the clock

Only one file makes up the source code for the clock:

        BigTime.java

### Downloading and Using It

In order to use the clock on your web page, you will need to download it, place it in an appropriate directory and add the applet tag to your document.

Only one class file is required. You can download it by selecting your favourite method:

- a UNIX compressed tar file
- a binhex stuffit file
- the raw file BigTime.class.

Make sure the file BigTime.class after downloading is 7151 bytes in size. Also make sure your server is configured to serve .class files as MIME type application/octet-stream.

People typically place applets in a classes directory at the same level as the HTML document for which the applet is being served from. This implies configuring the applet tag with a value of codebase equal to classes and code as BigTime.

This first clock on this page shows the default configuration with no parameters specified. The applet tag for the clock in black and gray looks like:

      <applet codebase="classes" code="BigTime" width=120 height=36>
      <param name=ledcolor value=black>
      <param name=framecolor value=lightgray>
      <param name=backcolor value=lightgray>
      </applet>

You must specify the width and height of the applet exactly as 120 by 36 respectively.

Valid colours for ledcolor, framecolor and backcolor are currently the prime colours that the Java language uses: black, blue, cyan, darkgray, gray, green, lightgray, magenta, orange, pink, red, white, and yellow.

Finally, if you can, I would appreciate if you place the following line at the bottom of the page on which you use the applet:

    <font size=-1>BigTime applet (c) <a href="http://www.conveyor.com/">
    The Internet Conveyor Ltd.</a></font>

    The Internet Conveyor Ltd.