Récuperer des information d'un jframe à partir d'un autre Jframe
Bonjour,
j'ai 2 Jframes : JF_P (principal) et JF_S
Code:
1 2 3 4 5 6 7 8 9 10
| public class JF_P extends javax.swing.JFrame {
.....
private void RunMouseClicked(java.awt.event.MouseEvent evt) {
JF_S IP = new JF_S();
IP.setVisible(true);
}
// fonction main...
} |
et
Code:
1 2 3 4 5
| public class JS_P extends javax.swing.JFrame {
....
jTextField1 = new javax.swing.JTextField();
..
} |
comment puis je recuperer (dans JF_Principal) les infos de JTextField1 que l'usager aura entré