Sending smilies with a java messenger application?
How can I make a client able to s开发者_StackOverflow社区end smilies to other clients?
You can just search for the smiley character sequences on the receiving end and replace them with an image of the smiley before you display the message.
Smileys are just pieces of text that gets rendered as an image by the client app e.g. ":)" or "[smile]". Basically what the client does, is search for these in the message and replaces them
Ok, I found it. You set the HTMLEditorKit
as my JEditorPane
editorKit. Then it can understand the html tags.
精彩评论