Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] (no subject)

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


Back to the top