if(!message.getType().equals("chat"))
return;
ChatWindow window = ChatWindow.openChat(message.getFromID());
SoundController soundController = new SoundController();
Sound sound = soundController.createSound(Sound.MIME_TYPE_AUDIO_MPEG,
"sound/im.wav");
sound.play();
window.addMessage(getContactNick(message.getFromID().toStringNoResource()), message.getBody(),false);
}
public void onMessageSent(XmppMessage message)
{