JTextArea & color text

Discussion in 'Java' started by vertigo, Apr 9, 2004.

  1. vertigo

    vertigo Guest

    Hello
    How can i add color text to JTextArea ?

    Thanx
    Michal
     
    vertigo, Apr 9, 2004
    #1
    1. Advertising

  2. vertigo

    vertigo Guest


    > Hello
    > How can i add color text to JTextArea ?


    I want to have two lines in red and next two lines in blue color.
    Is it possible ?

    Thanx
    Michal
     
    vertigo, Apr 9, 2004
    #2
    1. Advertising

  3. vertigo

    Armel HERVE Guest

    In article <c55q8h$12e$>,
    says...
    >
    >
    > > Hello
    > > How can i add color text to JTextArea ?

    >
    > I want to have two lines in red and next two lines in blue color.
    > Is it possible ?
    >
    > Thanx
    > Michal
    >
    >

    In fact, you can do it with a JTextPane, not a JTextArea

    Armel
     
    Armel HERVE, Apr 9, 2004
    #3
    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. bad_knee
    Replies:
    0
    Views:
    524
    bad_knee
    Jul 13, 2003
  2. Brett Sheeran

    Unable To Change Color In JTextArea

    Brett Sheeran, Sep 13, 2003, in forum: Java
    Replies:
    3
    Views:
    9,564
    Illuvian
    Jul 4, 2006
  3. Matt Adams
    Replies:
    0
    Views:
    892
    Matt Adams
    Aug 26, 2003
  4. Kamaljeet Saini
    Replies:
    0
    Views:
    429
    Kamaljeet Saini
    Feb 13, 2009
  5. Replies:
    7
    Views:
    380
    Mick White
    Feb 2, 2005
Loading...

Share This Page