下载此文档

简单猜数字界面版源码.doc


文档分类:IT计算机 | 页数:约9页 举报非法文档有奖
1/9
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/9 下载此文档
文档列表 文档介绍
.;
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转载请标明出处.

非法内容举报中心
文档信息
  • 页数9
  • 收藏数0 收藏
  • 顶次数0
  • 上传人xxj16588
  • 文件大小62 KB
  • 时间2018-01-04