aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JTextArea/PlainDocument woes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTextArea/PlainDocument woes" Watch "JTextArea/PlainDocument woes" New topic
Author

JTextArea/PlainDocument woes

Timmy Marks
Ranch Hand

Joined: Dec 01, 2003
Posts: 226
is it possible to make sure that the text in a PlainDocument contains only ascii? I am working on an XML editor and it seems that there are often control sequences in the content returned with PlainDocument's getText() method.
Is there any way to filter these?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JTextArea/PlainDocument woes