java - How to use enter instead of a button JTextArea? -


for kind of messenger application using jtextarea can type in multiple lines. after looking @ documentation see there no action event handler this.

how can enter text , when press enter shows in other text area? wish use no buttons this

regards.

the default action when use enter key add "new line" string document. if don't behaviour need replace action own custom action.

read on key bindings see how might this.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -