posted 21 years ago
It looks like you are trying to delimit text that is shown in the JTextPane, but without showing the delimiters?
Have you considered using a <div> tag?
It is a non-displaying tag that can take an 'id' attribute. I've faked out an example below, there are two ways to use it. One is 'proper' HTML, the other is still proper HTML, but it mirrors the delimiters in case you need to search for them.
<div id="@">asdfghh</div>
<div id="@"/>asdfghh<div id="@"/>
Try that.
[ April 06, 2002: Message edited by: Mike Curwen ]