-
Highlighting text in a JTextArea
I have a text area that is populated with some data. It allows the user to
make updates and
save it back to the database. They would like to have all current change
to be "highlighted"
until the have saved. I can't use caret position and selection, because
the edits can be in multiple
areas of the same text field. In addition, if the text were selected, it
would be replaced with the next
keystroke.
Does anyone have any suggestions?
Thanks,
Tom
-
Re: Highlighting text in a JTextArea
Well, you might want to look at the text editing classes in package
"javax.swing.text". I haven't got to them yet but they look as if they
could be used to do what you ask.
Tom <mr_gibby@yahoo.com> wrote in message news:3908f847$1@news.devx.com...
>
> I have a text area that is populated with some data. It allows the user
to
> make updates and
> save it back to the database. They would like to have all current change
> to be "highlighted"
> until the have saved. I can't use caret position and selection, because
> the edits can be in multiple
> areas of the same text field. In addition, if the text were selected, it
> would be replaced with the next
> keystroke.
>
> Does anyone have any suggestions?
>
> Thanks,
> Tom
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks