i want that info placed in a buffer so it can be sent to c++ program and the string parsed using the jni. i am not concerned with the latter part. just want to know how to get the text into a buffer and back out to another text area. thanks
You can simply get the text from the JTextArea and use it to construct the buffer: //(I assume jta is a JTextArea) StringBuffer stB= new StringBuffer(jta.getText()); //..your code to operate with the buffer... //and insert the text into another JTextArea JTextArea anotherJTA= new JTextArea(stB.toString());