Results 1 to 2 of 2
- 12-16-2010, 05:13 AM #1Member
- Join Date
- Dec 2010
- Rep Power
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!
- 12-16-2010, 07:08 AM #2
- By George R. in forum AWT / SwingReplies: 7Last Post: 10-15-2010, 06:33 AM
- By jperson in forum New To JavaReplies: 4Last Post: 07-07-2010, 04:57 PM
- By Mash in forum AWT / SwingReplies: 7Last Post: 04-17-2010, 03:33 PM
- By Mash in forum AWT / SwingReplies: 1Last Post: 04-15-2010, 06:36 PM
- By Ada in forum AWT / SwingReplies: 1Last Post: 05-31-2007, 09:50 PM