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()