分数识别:
txtOutput.setText("");
txtOutput.setBackground(Color.WHITE);
double score;
String output="";
score=Double.parseDouble(txtScore.getText());
if(score>65)
{
output="考试通过";
txtOutput.setBackground(Color.green);
txtOutput.setText(output);
}
if(score<65)
{
output="考试未通过";
txtOutput.setBackground(Color.red);
txtOutput.setText(output);
}