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


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks