Bonjour, j'ai une 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]
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);
}
}
/code
Mais il me dit
[code]
found : java.lang.Object
required: boolean
Test= m_Gestion.Ordonnance.GetJTable().getValueAt(i,5);
1 error
/code
Mon boolean dans la colonne 5
Merci de votre aide
