Possible Duplicate:
Problem with multi-line JTextField
How do I append a new line in a Java Swing JTextField?
I’m writing a one chat application, in this chat application my input area is a JTextField and while the user releases the shift+enter keys I have to create a new line in the JTextField; this is my requirement.
JTextFielddoes not support multiple lines. UseJTextAreainstead.