I have developed a simple chat application and I am having problems updating the onlineUserlist dynamically after a user logs in
or a user logs off.
As you can see below the contacstFrame class implements the ListSelectionListener, ListDataListener
My problem is that i don't know how to tell the model that a user have logged or a user have logged off so it can update dynamically.
04-05-2006, 02:29 PM
When a user has logged on or off, the server needs to trigger an event for all those who have that user on their list. On AOL's chat service, you would receive an "updated_buddy2" command whenever the status of a buddy on your list has changed.
I've documented how AOL's protocol works, perhaps it might help you with designing your own. http://cca-software.com/TOC2.php