JTextpane Text Color

Discussion in 'Java' started by Vincent Poile, Nov 7, 2004.

  1. Hi, i want to change the color of specific words, in a JTextpane, without
    changing the rest of the text, is this possible if so how would i go about
    doing it,
    I will have an array of words which i want to match against and then the
    text in the JTextpane will be random and i would like to be able to do this
    automatically if possible Thanks for you help Vince
     
    Vincent Poile, Nov 7, 2004
    #1
    1. Advertising

  2. Vincent Poile wrote:

    > Hi, i want to change the color of specific words, in a JTextpane, without
    > <snip>


    This is really a question for c.l.j.gui


    --


    Regards/Gruß,

    Tarlika Elisabeth Schmitz
     
    Tarlika Elisabeth Schmitz, Nov 7, 2004
    #2
    1. Advertising

  3. Andrew Thompson, Nov 7, 2004
    #3
  4. On Sun, 07 Nov 2004 16:52:01 +0000, Tarlika Elisabeth Schmitz wrote:

    > Vincent Poile wrote:
    >
    >> Hi, i want to change the color of specific words, in a JTextpane, without
    >> <snip>

    >
    > This is really a question for c.l.j.gui


    Good point, you'll probably get better thought out
    answers than 'use a JEP' on c.l.j.g.

    For a quick summary of the major Java groups, check..
    <http://www.physci.org/codes/javafaq.jsp#groups>

    --
    Andrew Thompson
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.PhySci.org/ Open-source software suite
    http://www.1point1C.org/ Science & Technology
    http://www.LensEscapes.com/ Images that escape the mundane
     
    Andrew Thompson, Nov 7, 2004
    #4
  5. Ok thanks
    "Andrew Thompson" <> wrote in message
    news:1wyw0rnxyudxl$...
    > On Sun, 07 Nov 2004 16:52:01 +0000, Tarlika Elisabeth Schmitz wrote:
    >
    >> Vincent Poile wrote:
    >>
    >>> Hi, i want to change the color of specific words, in a JTextpane,
    >>> without
    >>> <snip>

    >>
    >> This is really a question for c.l.j.gui

    >
    > Good point, you'll probably get better thought out
    > answers than 'use a JEP' on c.l.j.g.
    >
    > For a quick summary of the major Java groups, check..
    > <http://www.physci.org/codes/javafaq.jsp#groups>
    >
    > --
    > Andrew Thompson
    > http://www.PhySci.org/codes/ Web & IT Help
    > http://www.PhySci.org/ Open-source software suite
    > http://www.1point1C.org/ Science & Technology
    > http://www.LensEscapes.com/ Images that escape the mundane
     
    Vincent Poile, Nov 7, 2004
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rawash
    Replies:
    1
    Views:
    530
    IchBin
    Dec 10, 2005
  2. Matt Adams
    Replies:
    0
    Views:
    909
    Matt Adams
    Aug 26, 2003
  3. Ironsienna
    Replies:
    0
    Views:
    420
    Ironsienna
    Nov 29, 2006
  4. Kamaljeet Saini
    Replies:
    0
    Views:
    464
    Kamaljeet Saini
    Feb 13, 2009
  5. Replies:
    7
    Views:
    395
    Mick White
    Feb 2, 2005
Loading...

Share This Page