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. Advertisements

  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. Advertisements

  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. Advertisements

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:
    2
    Views:
    711
    bad_knee
    Jul 14, 2003
  2. Thomas Weidenfeller

    Re: JTextArea text is double-spaced?

    Thomas Weidenfeller, Jul 16, 2003, in forum: Java
    Replies:
    2
    Views:
    607
    Thomas Weidenfeller
    Jul 17, 2003
  3. Brett Sheeran

    Unable To Change Color In JTextArea

    Brett Sheeran, Sep 13, 2003, in forum: Java
    Replies:
    3
    Views:
    9,937
    Illuvian
    Jul 4, 2006
  4. Aaron Boxer

    JTextArea: get last line of text

    Aaron Boxer, Sep 29, 2003, in forum: Java
    Replies:
    3
    Views:
    6,595
    Aaron Boxer
    Sep 30, 2003
  5. Phillip
    Replies:
    2
    Views:
    3,549
  6. Matt Adams
    Replies:
    0
    Views:
    1,094
    Matt Adams
    Aug 26, 2003
  7. Kamaljeet Saini
    Replies:
    0
    Views:
    871
    Kamaljeet Saini
    Feb 13, 2009
  8. Replies:
    7
    Views:
    666
    Mick White
    Feb 2, 2005
Loading...