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);
}
我試過這段代碼,但沒有奏效。