Results 1 to 2 of 2

Thread: JTextPane

  1. #1
    Join Date
    Dec 2010
    Posts
    3
    Rep Power
    0

    Default JTextPane

    I am building a chat program right now and am trying to make it so the user's name can be different colors in the chat area.

    I have looked everywhere and cannot find a clear answer on how to append a string into a JTextPane with color applied to certain characters. I know it might have to do with StyledDocuments or something like that, but if anyone has a good example please let me know!

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,234
    Rep Power
    19

Similar Threads

  1. Bottom-Up JTextPane
    By George R. in forum AWT / Swing
    Replies: 7
    Last Post: 10-15-2010, 06:33 AM
  2. problem in JTextPane
    By jperson in forum New To Java
    Replies: 4
    Last Post: 07-07-2010, 04:57 PM
  3. Reading from a JTextPane
    By Mash in forum AWT / Swing
    Replies: 7
    Last Post: 04-17-2010, 03:33 PM
  4. JTextpane
    By Mash in forum AWT / Swing
    Replies: 1
    Last Post: 04-15-2010, 06:36 PM
  5. Transparent JTextPane
    By Ada in forum AWT / Swing
    Replies: 1
    Last Post: 05-31-2007, 09:50 PM

Posting Permissions

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