java动物换位游戏实验分析,基于java的动物换位游戏软件设计大学论文

bar.add(menuHelp);

setJMenuBar(bar);

oneGradeItem.addActionListener(this);

twoGradeItem.addActionListener(this);

threeGradeItem.addActionListener(this);

custom.addActionListener(this);

leftIamge.addActionListener(this);

rightIamge.addActionListener(this);

defaultImage.addActionListener(this);

oneGradeResult.addActionListener(this);

twoGradeResult.addActionListener(this);

threeGradeResult.addActionListener(this);

customGradeResult.addActionListener(this);

limitTime.addActionListener(this);

helpcontent.addActionListener(this);

aboutUs.addActionListener(this);

renew=new JButton("重新开始");

renew.addActionListener(this);

autoButton=new JButton("自动演示");

autoButton.addActionListener(this);

quit=new JButton("撤消");

quit.addActionListener(this);

JPanel north=new JPanel();

north.add(renew);

north.add(quit);

north.add(autoButton);

String mess="互换左右动物位置";

JLabel hintMess=new JLabel(mess,JLabel.CENTER);

north.add(hintMess);

add(north,BorderLayout.NORTH);

add(pCenter,BorderLayout.CENTER);

JPanel south=new JPanel();

south.add(handleMouse);

add(south,BorderLayout.SOUTH);

setVisible(true);

setBounds(60,60,710,300);

validate();

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

if(!fileOneGrade.exists()){

try { fileOneGrade.createNewFile();

}

catch(IOException exp){}

}

if(!fileTwoGrade.exists()){

try { fileTwoGrade.createNewFile();

}

catch(IOException exp){}

}

if(!fileThreeGrade.exists()){ try { fileThreeGrade.createNewFile();

}

catch(IOException exp){}

}

if(!filecustomGrade.exists()){ try { filecustomGrade.createNewFile();

}

catch(IOException exp){}

}

handleMouse.gradeFile=fileOneGrade;

showDiolag=new ShowRecordDialog();

}

public void init()

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值