Passing data from one JFrame to another JFrame
Hi, I'm new to Java and completely out of conception how to solve my problem.
The trouble is that I have two JFrames.
JFrame1 has a JLabel and a JButton1.
JFrame2 has a JTextField and a JButton2
The interaction between the frames is as following:
When the JButton1 on JFrame1 is pressed the JFrame2 shows up. User enters some text in the JTextFields and then clicks the JButton2 on JFrame2. Then the JFrame2 disappears and the Label on JFrame1 is set with the text that has been entered in JTextField that was on JFrame2.
How can I do that?