Курсовая работа: Простейшие часы на Java
super.destroy();
stop = true;
//Ждем пока парралельный поток (timer) завершит работу.
Thread.currentThread().yield();
}
public String[][] getParameterInfo() {
String[][] retValue = {
{"dialColor", "hex", "alfa, red, green, blue (4 bytes, from 00 to FF)"},
{"hairLineColor", "hex", "alfa, red, green, blue (4 bytes, from 00 to FF)"},
{"hoursNeedleColor", "hex", "alfa, red, green, blue (4 bytes, from 00 to FF)"},
{"minutesNeedleColor", "hex", "alfa, red, green, blue (4 bytes, from 00 to FF)"},
{"secondsNeedleColor", "hex", "alfa, red, green, blue (4 bytes, from 00 to FF)"}
};
return retValue;
}
public String getAppletInfo() {
String retValue;
retValue = "Circle Clock";
return retValue;
}
}
// реализация класса ClockDial
package clock;
/*
* ClockDial.java
*
* Created on май 2009 г.
*/
import java.awt.*;