Mapping String to image

Hi all,

I want to send an Emoticon (image) to a user in my instant messenger. I have the statement (chat.sendMessage) for sending the message. But im not sure how to link the text to fire the image. Example:

user types.... :) and smiley.jpg gets sent.

How do I make the link ? can some one show me how?

Thanks Dilip

[354 byte] By [pateldwa] at [2007-9-30 2:17:33]
# 1
I would detect the ":)" on the other end, that is... on the side that you are going to display it. That would allow for the most flexibility as to what image to display and what not.
Josh_Castagnoa at 2007-7-16 13:26:14 > top of Java-index,Archived Forums,Swing...