JtextArea problem
I have a GUI interface in swing.
i have a button on it .
on click of a button i do the following as action performed.
JTextArea1.setText("some text");
Problem:
--
Now , i shall run a remote scriptin a unix machine and will get the String output as a return value into my GUI java program .
I wish to display this output as well in thesame JTextArea but with a scrollbar.
so, basically i want to have a TextArea with scrollbar whose contents will grow up dynamically (as it would come from running a unix script via ssh).
you will get something like below as a GUI.
STATUS TEXTAREA
Hello
output received after running script1:
sdcfsdfjsdfjsdfvdfvnfdv, v
xcvxcvxcvxcvxcvxcvxcvxvvxvx
output received after running script 2:
cdsjsb.vxdfvxcvbx.cvb.xcv.x
output received after running script 3:
cvzxbvm,xczvz,vxczbvzxm,vxz
xcvnxcm,vniklfjgiersjgergjerg
//blah blah
--
My investigation :
--
I have noticed if i put some more JTextArea.setText("some another text") ......it will replace the old text in the text areawhich i dont want ...........i want things to be appended with scrollbar .
Question :
-
can you give some idea ? how do i approach ?

