Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » bind system.out stream to SWT text widget
bind system.out stream to SWT text widget [message #454473] Thu, 21 April 2005 17:38 Go to next message
Duncan Krebs is currently offline Duncan KrebsFriend
Messages: 79
Registered: July 2009
Member
Hi,
I'm trying to figure out how I can bind the system.out stream to a swt
text widget. I've figured out that I can use System.setOut() to redirect
the stream. But now I'm stuck at trying to get it connected to a text
widget. Does anyone have any hints or code examples?!
Re: bind system.out stream to SWT text widget [message #454474 is a reply to message #454473] Thu, 21 April 2005 17:54 Go to previous messageGo to next message
Charlie Surface is currently offline Charlie SurfaceFriend
Messages: 40
Registered: July 2009
Member
Eclipse does this kind of thing when you launch Java applications, so
you could poke around in the JDT plugins.

Charlie


Duncan Krebs wrote:

> Hi,
> I'm trying to figure out how I can bind the system.out stream to a swt
> text widget. I've figured out that I can use System.setOut() to redirect
> the stream. But now I'm stuck at trying to get it connected to a text
> widget. Does anyone have any hints or code examples?!
>
Re: bind system.out stream to SWT text widget [message #454477 is a reply to message #454474] Thu, 21 April 2005 21:47 Go to previous message
Duncan Krebs is currently offline Duncan KrebsFriend
Messages: 79
Registered: July 2009
Member
Charlie thanks for the idea. I figured out it involves using PipedStreams
and multiple threads.
Previous Topic:Figure#setFont does not dispose the existing font
Next Topic:Default Font for all OS?
Goto Forum:
  


Current Time: Sat Mar 06 03:32:34 GMT 2021

Powered by FUDForum. Page generated in 0.02200 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top