一般applet中用init,而application中用constructor
init常用来初始化textfeild,label等。
constructor好像总是用来初始化数据。