java日历闹钟代码 java中日历类(11)


if(help.equals("quit"))
dispose();
else {}
//timer.restart();
}
}
class SetTime {
String Hour;
String Minute;
public SetTime() { }
public SetTime(int hour, int minute) {
// 当时间参数小于10的时候在前面添加字符0
if (hour10) {
Hour = "0" + String.valueOf(hour);
} else {
Hour = "" + String.valueOf(hour);
}
if (minute10) {
Minute = "0" + String.valueOf(minute);
} else {
Minute = "" + String.valueOf(minute);
}
alarm = Hour + ":" + Minute;
time.setText(alarm);
repaint();
}
}
}
java日历闹钟代码的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于java中日历类、java日历闹钟代码的信息别忘了在本站进行查找喔 。

推荐阅读