How did we get text from JTextArea ?

HiAs we can getText from JTextField..and getPassword from JPasswordField..How can we get text from JTextArea....
[140 byte] By [Reona] at [2007-11-27 2:23:21]
# 1
You'll want to bookmark this: http://java.sun.com/javase/6/docs/api/
DrLaszloJamfa at 2007-7-12 2:28:41 > top of Java-index,Java Essentials,Java Programming...
# 2

JTextField and JTextArea are both subclasses of JTextComponent. Both classes inherit the getText method from JTextComponent. When you're reading the API, be sure to look at the methods inherited from parent classes when you're looking for a method. (They're listed right below the methods of that class)

hunter9000a at 2007-7-12 2:28:41 > top of Java-index,Java Essentials,Java Programming...
# 3
Not only is your question in the wrong forum (Swing related questions should be posted in the Swing forum) The answer is in your question:> how do we "get text" from JtextArea.
camickra at 2007-7-12 2:28:41 > top of Java-index,Java Essentials,Java Programming...