JTextArea中好像有个方法 void getText()
String getText() Returns the text contained in this TextComponent.String value = textArea.getText();