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
Post a Comment