Difficult to explain in a short email. In general, I have a text component
in the applet that contains a lot of text. I want to disallow users to make
changes to certain portions of the text. 

Basically, I have a component that displays links defined by XML, and we
store the links (start, end) in a Collection associated with the component
and diplays the links in the component (JTextPane) by just marking them as
blue/underlined. So, I want to make sure the users never type inside the
links or modify them after they have been created.

The question remains: is it possible to make a piece of text in the text
component uneditable while the component is editable?


-----Original Message-----
From: Greg Munt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 21, 2002 11:46 AM
To: Reinstein, Lenny; [EMAIL PROTECTED]
Subject: Re: Making parts of Text component uneditable.


What are you trying to do?

----- Original Message ----- 
From: "Reinstein, Lenny" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 21, 2002 3:57 PM
Subject: Making parts of Text component uneditable.


> There's a simple setEditable(boolean) that make the whole JTextComponent
> uneditable. However, I would like to make only parts of text in the
> component uneditable. Is it possible?  Thanks.
> 
> -Lenny, New York.
> 
> _______________________________________________
> Advanced-swing mailing list
> [EMAIL PROTECTED]
> http://eos.dk/mailman/listinfo/advanced-swing
> 

_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to