赞
踩
一别经年
回答时间:2019-12-05
向TA提问
收藏的一个小程序。
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import javax.swing.JApplet;
import javax.swing.JButton;
import javax.swing.JLabel;
public class TimerApplet extends JApplet implements ActionListener{
private JLabel lblTime=new JLabel("时间");
private JButton btnStart=new JButton("开始");
private JButton btnEnd=new JButton("结束");
private long startTime=System.currentTimeMillis();
private boolean isRun=false;
private NumberFormat number
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。