gvsu/cs621/proj1/Clock.java
josh 6aad5842fd cs621: proj1: added javadoc to base Clock .java files
git-svn-id: svn://anubis/gvsu@8 45c1a28c-8058-47b2-ae61-ca45b979098e
2008-02-03 04:11:53 +00:00

31 lines
708 B
Java

/**
* A front-end class to display and update a ClockView object.
*/
public class Clock
{
/**
* This method is the entry point when the user invokes the program.
* @param args Any command-line arguments supplied during invocation.
*/
public static void main (String args[])
{
ClockView cv = new ClockView();
cv.setVisible (true);
// loop about every 0.5 seconds
try
{
for (;;)
{
cv.refreshTimeDisplay ();
Thread.sleep (500);
}
}
catch (Exception e)
{
System.out.println("Error:" + e);
}
}
}