跪求java 随机抽奖机论文

来源:百度知道 编辑:UC知道 时间:2024/09/22 17:36:12
急用!
这是程序的部分代码
JTextField tf = new JTextField();
JButton b1 = new JButton("开始");
JButton b2 = new JButton("停止");
boolean isGo = false;
public GoodLucky(){
b1.setActionCommand("start");
JPanel p = new JPanel();
p.add(b1);
p.add(b2);

b1.addActionListener(this);
b2.addActionListener(this);
b2.setEnabled(false);

this.getContentPane().add(tf,"North");
this.getContentPane().add(p,"South");
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setSize(300,200);
this.setLocation(300,300);
Cursor cu = new Cursor(Cursor.HAND_CURSOR);
this.setCursor(cu);
this.setVisible(true);
tf.setText("welcome you! ");
这属于学期结束考核的。没什么要求,只给了代码!我是受人之托!说实话我不懂这个!

要代码的话,也许还有人愿意写。。。如果论文的话,,,不好意思,我毕业的论文也是上网找的资料。。。

是什么抽奖啊?
所有的抽奖都是随机的。但你的抽奖机有没有描述???
论文?什么级别的?