This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

colored text and images in chat message area

 
prabhat gupta
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic