aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes colored text and images in chat message area Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "colored text and images in chat message area" Watch "colored text and images in chat message area" New topic
Author

colored text and images in chat message area

prabhat gupta
Greenhorn

Joined: Aug 21, 2001
Posts: 26
what are the different ways of displaying colored text and small images using swing just like in a chat window.Also is it possible only with JEditorPane or a JTextArea can do the trick.
If only i want to set colored text then what is the solution.
give me some idea guys.
Sajee Joseph
Ranch Hand

Joined: Jan 17, 2001
Posts: 200
Hi,
U can't have different colors for different text in JTextArea. U can use JTextPane instead. In JTextPane u can have multicolor and images too. But as per my experience with JTextPane, u can insert images into it, but retriveing them is difficult. If u need the code for multi color in JTextPane, then mail me at josephsk@slk-soft.com
..regards
..saj
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: colored text and images in chat message area