package com.a.a;
import java.awt.event.*;
import javax.swing.*;
 
public class DyClock extends StillClock{
	public DyClock()
	{
	       Timer time=new Timer(1000,new TimerListener());
	       time.start();
	}
    class TimerListener implements ActionListener{
		@Override
		public void actionPerformed(ActionEvent e)
		{
			setCurrentTime();
			repaint();			
		}   	   
       }
    public static void main(String[] args) {
    	
    	JFrame f=new JFrame("111");
    	DyClock clock=new DyClock();
    	f.add(clock);
    	f.setLocationRelativeTo(null);
    	f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    	f.setSize(200,200);
    	f.setVisible(true);
    }
}
最近下载更多
Kunyuu  LV1 2023年12月26日
另类清晨  LV8 2023年5月15日
微信网友_5992582549164032  LV6 2022年6月21日
段朝洪  LV15 2020年11月21日
liangge2115  LV27 2020年10月17日
刘晨娜  LV1 2020年7月24日
15966848095  LV22 2020年1月12日
wenxiaozhong  LV1 2019年12月18日
如风太过分人  LV1 2019年12月17日
yongzheng132  LV17 2019年6月21日
最近浏览更多
Kunyuu  LV1 2023年12月26日
wuyongjian 2023年6月29日
暂无贡献等级
luo110012  LV9 2023年5月15日
另类清晨  LV8 2023年5月15日
想把它染成绿色 2023年3月1日
暂无贡献等级
Willson88888  LV3 2022年12月7日
微信网友_6248713511227392  LV11 2022年12月5日
一起吹过晚风的街  LV1 2022年9月21日
微信网友_5992582549164032  LV6 2022年6月21日
猪皮怪 2022年6月12日
暂无贡献等级
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友