I am currently trying to build an chat application using java socket programming. I am not very good at Swing. Everytime a new user joins the chat the new list of members who are currently signed in is dispatched to all the clients so that they can refresh their list. Now I want to know which is the best container to display this list. Should I show it in JList,JTextArea or any other container. What I want is when the user clicks on any of the member's name then a private chat window appears. How can I accomplish this??

Thanks in advance