I am trying to write a small java applications. I created my 1st JPanel, and added a JTextBox and a button to it, in a 2nd JPanel I added a JTextBox only, now I added this 2 JPanel to a JFrame, I want to want to put up the text in JtextBox of Panel1 to JtextBox of Panel2 on hitting the button of JPanel1. I am adding an image for clarification , this small piece of code is done except the event-handling (the most important part).
If someone clears my doubts, and provides some code/link how to write codes for this kind of event handling, then it would be very helpful.
Please help, thanks in Advance.
ok , I did exactly the same, it works but there is a problem. When I try to get my Text (with SOP statements), of JtextArea2, I get what is expected, but in the UI it remains the same doesnot update.