[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[platform-swt-dev] (no subject)
|
- From: Peter <scamatrallera@xxxxxxxxx>
- Date: Wed, 19 Jul 2006 22:40:58 +0200
- Delivered-to: platform-swt-dev@eclipse.org
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=C120JXzAZYaM6xhbyKZ2AEq73CP1BsenIIOu6uSnQgFp5kaVmwhKQO8VRZ7uOGIuwlDFqElN/FtaEk/TrFV40sW4Q2xLbYFn0SFsMZNyCPRQUnfed7qbhYd2f6getVlYmxTxfEKiaklKRaiJNifzWwugGqWeIhn4OgpnQUJn9ig=
hi,
I need to redirect the system standard output to a Text Widget in a
stand alone SWT application.
I tryed to do that in this way
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/////////
OutputStream out = new OutputStream() {
//Override
public void write(final int b) throws IOException {
dialogText.append(Character.toString((char) b));
}
};
System.setOut(new PrintStream(out));
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/////////
it works...but extremely slow!!!
someone know why or have suggestions?
thank you and have a nice day!
Peter