Results 1 to 1 of 1
  1. #1
    andrewb is offline Member
    Join Date
    Jun 2007
    Posts
    1
    Rep Power
    0

    Default 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 06:50 PM.

Similar Threads

  1. Replies: 0
    Last Post: 12-17-2007, 09:46 AM
  2. jeditorpane help parsing html
    By asifsolkar in forum Advanced Java
    Replies: 4
    Last Post: 12-14-2007, 05:23 AM
  3. JEditorPane
    By drmmr11 in forum Java Applets
    Replies: 0
    Last Post: 08-02-2007, 06:08 PM
  4. GNU Source-highlight 2.7
    By levent in forum Java Software
    Replies: 0
    Last Post: 06-12-2007, 08:39 AM
  5. How to select/highlight an entire row in JTextArea
    By Valeriano in forum AWT / Swing
    Replies: 2
    Last Post: 05-28-2007, 11:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •