Liesel's Spot Clock toy:


The Bugs are gone. The problem with the spots disappearing had to do with the way I have AppletViewer executing from a directory in my CLASSPATH on my local computer. I had read in the tutorial that funny things could happen with your debugging environment set up like that. The applet works fine over the net. The Spots may seem to disappear depending on how big your pixels are when their time is "00" and the spots are very small. In addition I find that the Calendar object seems to report hours equal to zero at the 12:00:00 PM time. I will look into this further. The problem with loading the .GIF file for the animated reset button had to do with that I needed to do the getCodeBase method from the main SpotClock class. This is because at the time SCControls needs this information it is not active (during init) and so getCodeBase returns an unusable "null" from SCControls at that time. I have not implemented proper scaling of items in the windows when the windows are re-sized. I will probably implement this on my next toy and leave this one as is.

SCCanvas Class
SpotClock Class
SCControls Class
Try Spot Clock






Back to main: Java Toys

Copyright © by Liesel Siobhan

The links at the bottom of your screen will take you to the main topic areas