i am doing a chat application in java applet. I used JList to display all the user present in the chat room, when a new user is loged in then using
i added the user and call this method
user_list.updateUI(); to update the list with new values.
But sometimes its get updated, in sometimes its not getting updated. To check whether the ListModel gets updated i used the following code System.out.println(user_list.getModel().getSize()); which shows new size of the user list, but its not getting updated. Tell me whats the problem