This content has been marked as final. Show 3 replies
how can I grab that string out of the arraylist to display in the JList?You don't need to. You already have a reference to the string because you're using it to compare to something inside the list.
hmm okay, then how do I display that string from the arraylist into a JList
are you using a ListModel in your List? If so, use ListModel.addElement() to add the String
Read the List tutorial http://java.sun.com/docs/books/tutorial/uiswing/components/list.html