Probleme L'orsde remplir la JTable

cs_biboobib Messages postés 95 Date d'inscription dimanche 29 juillet 2007 Statut Membre Dernière intervention 27 août 2011 - 7 oct. 2010 à 18:03
cs_manou74 Messages postés 19 Date d'inscription samedi 20 décembre 2008 Statut Membre Dernière intervention 20 mai 2011 - 26 déc. 2010 à 16:46
Salut tous le monde,
Mon Problème consiste a re remplir ma JTable après avoir effacer son continue.
TableMOdelPerso tmp=new TableModelPerso(headers);
jTable jt=new JTable(tmp);


tmp.clear();
je recoit la fameuse exception (indexOutOfBoundsException)

Je suis habitue avec le JTable mais la j ai pas compris le problem
Quelq'un a une idee??

1 réponse

cs_manou74 Messages postés 19 Date d'inscription samedi 20 décembre 2008 Statut Membre Dernière intervention 20 mai 2011 1
26 déc. 2010 à 16:46
essayez avec :
if(!tmp.isEmpty())
tmp.clear();
ou bien:
tmp.clearAll();
0
Rejoignez-nous