I think you will have to get text from textpane like: textPaneRef.getTet() and pass it on to concerned subclass of InputStream, such as CharArrayInputStream etc... and can set your text into it. You can learn how to apply it from an I/O Stream chapter of any java book. Hope it helps. Good luck Rashid Ali
An elephant? An actual elephant. Into the apartment. How is the floor still here. Hold this tiny ad:
a bit of art, as a gift, that will fit in a stocking