Hi Brian,
10'x for the answer however, i don't know exactly the location of the protected text.
i need this implementation for a new workspace i develop. the idea is to build a code editor (lets say foe example perl or
java editor). some of the code is automatically generated at the begining of some proccess and the user can add his own cod and extend it.
the only thing i need is to protect the auto generated code from being change by the user but i cant't keep track of it's location as the user may insert his own coda and change the file structure.
Is there any solution using some special tags that the jtextpane (or maybe other component) know to refer as read only? in that case i can wrap the auto generated code with this tags...
hope i explained my self enough :-)
Cluny