Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.lang.java.gui > #5515

Re: how to direct console output to a textarea

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Nigel Wade <nmw@local.domain>
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 <ed6ls7FbfjkU1@mid.individual.net> (permalink)
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

Show key headers only | View raw


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.

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

how to direct console output to a textarea abhprk3926@gmail.com - 2017-01-04 23:56 -0800
  Re: how to direct console output to a textarea Nigel Wade <nmw@local.domain> - 2017-01-05 10:35 +0000
    Re: how to direct console output to a textarea abhprk3926@gmail.com - 2017-01-05 03:04 -0800
      Re: how to direct console output to a textarea Nigel Wade <nmw@local.domain> - 2017-01-09 12:11 +0000
      Re: how to direct console output to a textarea kanisfatemashanta28@gmail.com - 2018-12-21 00:35 -0800
  Re: how to direct console output to a textarea Abhay Prakash <abhprk3926@gmail.com> - 2017-01-09 07:17 -0800
    Re: how to direct console output to a textarea kanisfatemashanta28@gmail.com - 2018-12-18 11:30 -0800

csiph-web