contact = contacts.getContact(strTitle,true);}
ChatWindow wndChat = new ChatWindow(xmppconnection, contact);
Observer observer = wndChat;
contact.addObserver(observer);
andFilter.addFilter(new NotFilter(new FromContainsFilter(contact.getFullJID())));
xmppconnection.addPacketListener(pktListener, andFilter);
wndChat.setVisible(true);
}
}
}