wood burning stoves
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

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTextArea/PlainDocument woes" Watch "JTextArea/PlainDocument woes" New topic

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?
It is sorta covered in the JavaRanch Style Guide.
subject: JTextArea/PlainDocument woes
It's not a secret anymore!