swing - How to add text to JText area without deleting the previous text it has? java -


i have jtext area in program contain text, , want add more text it, when button pressed without deleting text has on it. example

jtextarea text = new jtextarea("including; "); 

when button pressed, have add text without deleting 1 has already, so;

text.settext("including button1"); 

and when button pressed should this

text.settext("including; button1, button2"); 

what effective way of doing this?

use append feature, this

text.append("button1,"); 

place in button / s , write name of button


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -