Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-22-2007, 07:48 PM
Member
 
Join Date: Jun 2007
Posts: 1
andrewb is on a distinguished road
Adding custom highlight to JEditorPane
In my application i would like to highlight some words with specific text color without touching anything of model. this highlight is meant to represent information that is kind of volatile and has nothing to do with Document. (say, i want to highlight words as they are spoken by TTS). If changing background of text was everything i need, i could simply use Highlighter but i actually have to do something about color of text that is being highlighted. JTextPane seems to be not really flexible at this point - all it provides is selected text color. I absolutely dont want to put up with selection color as implementation basis of this feature.

I would greatly appresiate any help.

Last edited by andrewb : 06-22-2007 at 07:50 PM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding custom buttons - JOptionPane.showOptionDialog(...) Java Tip Java Tips 0 12-17-2007 10:46 AM
jeditorpane help parsing html asifsolkar Advanced Java 4 12-14-2007 06:23 AM
JEditorPane drmmr11 Java Applets 0 08-02-2007 07:08 PM
GNU Source-highlight 2.7 levent Java Announcements 0 06-12-2007 09:39 AM
How to select/highlight an entire row in JTextArea Valeriano AWT / Swing 2 05-28-2007 12:20 PM


All times are GMT +3. The time now is 04:51 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org