Serialized Form


Package com.mindprod.setclock

Class com.mindprod.setclock.SetClock extends javax.swing.JApplet implements Serializable

Serialized Fields

pleaseStop

java.lang.Boolean pleaseStop
Used to ask the background updater to stop running so we can have some cpu cycles for the foreground tasks.


clockUpdater

com.mindprod.setclock.SetClock.ClockUpdater clockUpdater
thread to continuously update the clock


contentPane

java.awt.Container contentPane
Applet ContentPane


accurateTime

java.util.GregorianCalendar accurateTime
best guess at accurate time, updated each second.


pcTime

java.util.GregorianCalendar pcTime
Time according to local PC clock, updated each second.


about

javax.swing.JButton about
control for about button


setClockButton

javax.swing.JButton setClockButton
button to make the time correction


accurateTimeLabel

javax.swing.JLabel accurateTimeLabel
control to label the accurate time


correctionLabel

javax.swing.JLabel correctionLabel
control to label the correction required


instructionsText

javax.swing.JLabel instructionsText
control for the instruction on how to use.


pcTimeLabel

javax.swing.JLabel pcTimeLabel
control to label the PC's time


timeZoneLabel

javax.swing.JLabel timeZoneLabel
control to label the timezone


title

javax.swing.JLabel title
control for title title


title2

javax.swing.JLabel title2
title, second line


accurateTimeText

javax.swing.JTextField accurateTimeText
control to contain the accurate time


correctionText

javax.swing.JTextField correctionText
control to contain the correction required


pcTimeText

javax.swing.JTextField pcTimeText
control to contain the PC's time


timeZoneName

javax.swing.JTextField timeZoneName
control to contain the timezone


clockSetter

com.mindprod.pcclock.PCClock clockSetter
handle to the PCClock class with native date-time setting methods.


stage

int stage
0=start 1=have accurate time 2=accurate time set.


correction

long correction
current error in milliseconds between two clocks. Add this to pcTime to get accurateTime