有时钟的多线程
publicvoidrun(){JFrameframe=newJFrame();JLabellabel=newJLabel();Containercon=frame.getContentPane();frame.setBounds(300,300,100,100);frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);StringstrTime=String.format("%tT",newDate());label.setText(strTime);label.setFont(newFont
下载地址
用户评论