0
我有一个JTable列表,它显示了一组问题。每个问题都有一个难度级别,我想在JTable中获取简单,中等,难度较大的问题。 如何从列表中获取属性
public void actionPerformed(ActionEvent arg0) {
Test test= new Test();
Integer id=GestionTestDelegate.doGetLastInsertId();
test=GestionTestDelegate.doFindTestById(id);
Integer facile = null;
Question question=new Question();
if(questions2.contains(question.getNiveauDeDifficulte().equals("Facile"))){
facile++;
}
test.setNbrQuestionFacile(facile);
GestionTestDelegate.doUpdateTest(test);
}
我试过这段代码,但没有奏效。