Use new ByteArrayInputStream(yourString.getBytes()) instead. If you need to convert charsets you can use the getBytes(encoding) method of String.

StringBufferInputStream was deprecated for that reason - it won't properly take care of charset conversion for you.

-- Edvin

Den 01.06.2011 18:26, skrev Greg Brown:
So I used Edvins advice, although I assumes he meant StringBufferInputStream
because it didnt seem to recognize StringInputStream();

My code is:
...
which gives the error:

java.lang.IllegalArgumentException: Window parent must be null or display,
cannot be org.apache.pivot.wtk.SplitPane

You need to make sure that the root element of your BXML is not a Window.

on a side note. when I import java.io.StringBufferInputStream; the
StringBufferInputStream has a line right through the middle of it like its
crossing it off a list. and anytime I use it in the rest of the file it
strikes it out as well. Why is this?

That's because StringBufferInputStream is deprecated (meaning its use is not 
recommended).

Reply via email to