messenger.setLogIncoming(true);
messenger.setLogOutgoing(true);
messenger.addListener(new MsnListener());
messenger.login();
messenger.addContactListListener(new MsnContactListAdapter()
{
public void contactStatusChanged(MsnMessenger msn, MsnContact con)
{
System.out.println(con.getDisplayName());
System.out.println(con.getPersonalMessage());