Samarstan Applet Applets

Digital Clock Applet

  • This is the Applet :

  • DigiClock.java - This is the Source Code

  • Notes :
    - Applet as of yet incomplete
    - Integer.toString(int) is not the same as the xdate.toString() method from String ! There is a toString() method in java.lang.String with no arguments and a toString(int) method in java.lang.Integer
    - If sleep time is not 1000 ms = 1 sec, a lot of flicker occurrs.
    - Use repaint(50,50,50,50); to repaint a limited area
    - Careful when using setBackground as this can erase the watch

Samarstan Applet Applets