3 Replies Latest reply: Mar 17, 2008 11:49 AM by 807601 RSS

    grabbing a string out of an arraylist.


      i have many strings in an arraylist. im allowing the user to type in a string into the JTextField, and if the string matches a string in the arraylist, that string will be displayed into a JList.

      my question is after the program finds the string, how can I grab that string out of the arraylist to display in the JList? I know I could just set the JList to show whatever string was typed into the textfield, however I want it to display the string in the arraylist instead.