Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Knute Johnson Newsgroups: comp.lang.java.gui Subject: Re: Dynamic updation of a JTextArea Date: Wed, 14 Dec 2016 15:15:45 -0600 Organization: A noiseless patient Spider Lines: 16 Message-ID: References: <0f003cf3-2058-4286-8669-a75fe3f116c3@googlegroups.com> <89366421-9545-42ed-8d8e-b960310c1047@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 14 Dec 2016 21:14:22 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="ed04148e6ba6b10a9061889e072e8089"; logging-data="14749"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/rGfQB92VDkn61zb0sZEIk" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 In-Reply-To: <89366421-9545-42ed-8d8e-b960310c1047@googlegroups.com> Cancel-Lock: sha1:OP0X129YDdK12BWEoRMlRTbV66A= Xref: csiph.com comp.lang.java.gui:5505 On 12/14/2016 10:47, abhprk3926@gmail.com wrote: > clientChat.ta is the common textarea for appending the messages. > It's not clear to me from the pieces of your code that I have seen how this actually is supposed to function. But that is really irrelevant, what we need here is an SSCCE (see http://sscce.org). What I have seen of your code though does have some problems. It would be good if you could provide the version of Java that you are using and whether the text area you are writing to is a JTextArea, an AWT TextArea or a JavaFX TextArea, all have different requirements for threading issues. -- Knute Johnson