0

I have jFrame1 that contains a jtextfield1 and a button1. I also have jFrame2 that holds a desktopPane1 and that desktopPane1 holds internalFrame1 which contains jtextfield2. What i want to do is, the text from jtextfield1 should be passed to jtextfield2 when i click the button1. i tried the

internalFrame1 access=new internalFrame1(); access.jtextfield2.setText(jtextfield1.getText());

of course I put that code inside may button1. i didn't get any error, but i didn't get any result as well. How to do it? Help me pleeease.

0 Answers0