title: How to convert ArrayList into JList object? java
body: <p>I have an ArrayList that gets larger as more users join a chatroom. The main JFrame has a list box that displays all currently connected users. But when i try to pass the arraylist into the jframe list i get this following error: </p>
  
  <blockquote>
    <p>"The method setListData(Object[]) in the type JList is not applicable
    for the arguments (ArrayList)"</p>
  </blockquote>
  
  <p>Thanks for your time. </p>