.;
import ;
import ;
import ;
import ;
import ;
import ;
import ;
import ;
import ;
import ;
import ;
import ;
public class Window extends JFrame{
/**
*
*/
private static final long serialVersionUID = 1L;
private static int[] num;
private static String outtime;
private static boolean waits = false;//false暂停 true继续
public static void main(String[] args) {
JFrame jf = new JFrame();
("猜数字");
(null);
setButtoms(jf);
(400, 300);
(null);
(false);
(true);
();
}
public static void setLables(JFrame jf){
JLabel jl = new JLabel("级别:");
JLabel sumtime = new JLabel("倒计时:");
(80, 70, 40, 30);
(20, 230, 55, 30);
(jl);
(sumtime);
}
public static void setButtoms(final JFrame jf){
Button bt0 = new Button("简单");
Button bt1 = new Button("普通");
Button bt2 = new Button("困难");
Button bt3 = new Button("我猜");
Button bt4 = new Button("答案");
Button start = new Button("开始");
final Button stop = new Button(
简单猜数字界面版源码 来自淘豆网www.taodocs.com转载请标明出处.