passage d'un int (débutant)
Salut a tous encore sur la brèche, je cherche a passer une variable int code d'une frame a l'autre
Code:
1 2 3 4 5 6 7 8
| int i=jTable.getSelectedRow();
int code=Integer.parseInt(jTable.getValueAt(i, 0).toString());
Lancer.setRefLecteur(jTable.getSelectedRow());
Bibliotheque maBibliotheque=Lancer.getRefBibliotheque();
Lecteur unLecteur=maBibliotheque.getLecteur(code);
FicheLecteur uneFicheLecteur=new FicheLecteur();
uneFicheLecteur.setVisible(true); |
je cherche la variable "code" dans la page "FicheLecteur"
merci pour l'aide