Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Nigel Wade Newsgroups: comp.lang.java.gui Subject: Re: how to direct console output to a textarea Date: Thu, 5 Jan 2017 10:35:50 +0000 Lines: 8 Message-ID: References: <163b0e03-2224-427a-910a-e9ef41df36cf@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 93iv1UUdcfZjJi+KJwyNAwTCsYibND2hqLvukn7RASliU5PUO6 Cancel-Lock: sha1:GvkoiTE0wL83VDBPLEHFRM3rLqw= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 In-Reply-To: <163b0e03-2224-427a-910a-e9ef41df36cf@googlegroups.com> Xref: csiph.com comp.lang.java.gui:5515 On 05/01/17 07:56, abhprk3926@gmail.com wrote: > i cant seem to figure a way to display console output to a textarea. here is what i have done till now. any help would be appreciated. You are only reading the standard output of the GUI program itself. If you want to read the output from the processes you create using Runtime.getRuntime().exec then you need to capture the output of those processes and append it to the text area. You would probably be better off using ProcessBuilder rather than Runtime.getRuntime().exec.