-i am making a clock in java that displays current time in a jlabel but that event fire up only with mousemotion and the label keeps on updating if the mouse is kept moving.how do i automatically update time in the label after a gap of 1sec each.
am using loop,sleep,repaint to do it but it is still not working.
没有评论:
发表评论