Groups | Search | Server Info | Login | Register


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

Re: how to direct console output to a textarea

From Nigel Wade <nmw@local.domain>
Newsgroups comp.lang.java.gui
Subject Re: how to direct console output to a textarea
Date 2017-01-05 10:35 +0000
Message-ID <ed6ls7FbfjkU1@mid.individual.net> (permalink)
References <163b0e03-2224-427a-910a-e9ef41df36cf@googlegroups.com>

Show all headers | 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