Description: More practical , drawing dial appearance, small-scale and large- scale drawn on the dial is also worth noting, and the dial is divided into 60 parts , the dividing point coordinates stored in the array, whenever the applet to start again, first eliminate thread, and then re- start the creation of threads . 12:00 position coordinates of each of the hour hand ( by the new coordinate system coordinates ) .
Thread hour = null, minute = null, seconds = null // used to indicate the hour, minute and second hand threads.
//Represents the hour, minute , second hand endpoint integer variables :
int hour_a, hour_b, munite_a, munite_b, second_a, second_b
//Used to get the current time integer variables :
int hour = 0, munite = 0, second = 0
//Used to draw the hour, minute and second hands Grapghics object :
Graphics g_second = null, g_munite = null, g_hour = null
//Used to store an array of dial scale , move the pointer used for :
double point_x [] = new double [61], point_y [] = new d
To Search:
File list (Check if you may need any files):
java时钟小程序\Clock_good.java
java时钟小程序