i am having two frame in which both are having text area each. i tried of doing like whenever i enter data into frame 1 text area and press the button in taht frame the data should be sent to second and that data should be appended into text area of second frame. i had tried it but the data is transferring from one frame to other and displaying in console and also displaying in joptionpane but not in the text area. i tried using networking concept also but it doe snot work
I't s what Maneesh said- you're going to have to provide more details in order to get a good answer. I'll try offer one that might not be so good !
Each of the "frames" you're talking about has to have a JTextArea (at least) in it since "frames" i.e. JFrames don't support the presentation of text.
Then if what you want is to have text you type into one "frame" show up in another frame after you push a button, you need to be familiar at least these concepts;
Basically, you're going to write an action listener that retrieves the text from the document model of one text area, puts it in the document model of another text area then fires a document changed event on that second text area so it shows the new text. No details provided on purpose including what classes to use. That's what it sounds like like you want to do. That's about how you'd do something about like that. I can be more specific when you can, deal? Deal.
Generally, the Swing tutorial at Oracle's site is your best friend right now.