Updating a JList

I have this problem with a project I am making. I am making a chat program and I am now working on the client. The client has a friend list with all his contacts. He can get a friend request when he is online. This has all been programmed without a problem but when I accept a new Friend request I need the JList I use to store all his friends to be updated with the new Friend but I don抰 know how to do that I tried repaint() but that does not work I tried reinitializing the JList with the update friend list from my database but that also does not turn up the new Friend. If someone knows a solution to my problem I would be forever grateful.

Greetings Ben.

[673 byte] By [kryptonite88a] at [2007-11-27 4:49:58]
# 1
Add the "friend" to the list's ListModel. Which probably in your case would be a custom list model.
bsampieria at 2007-7-12 10:03:09 > top of Java-index,Java Essentials,New To Java...