récupéré un boolean dans une Jtable
Bonjours j'ai un jTable avec une case a cocher(Boolean) et je voudrais récupéré cette valeur pour savoir ci elle est a true ou false.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
boolean Test;
for(int i=0;i<m_Gestion.Ordonnance.GetLignes();i++) {
Test= m_Gestion.Ordonnance.GetJTable().getValueAt(i,5);
if(Test=true){
Medoc += m_Gestion.Ordonnance.GetJTable().getValueAt(i,0)+"\n";
Medoc += m_Gestion.Ordonnance.GetJTable().getValueAt(i,4)+"\t\t";
Medoc += m_Gestion.Ordonnance.GetJTable().getValueAt(i,2)+"\n\n";
m_Gestion.m_Impression.GetTextArea().setText(Medoc);
}
} |
Mais il me dit
Code:
1 2 3 4 5
|
found : java.lang.Object
required: boolean
Test= m_Gestion.Ordonnance.GetJTable().getValueAt(i,5);
1 error |
Mon boolean dans la colonne 5
Merci de votre aide