View Single Post
  #1 (permalink)  
Old 03-17-2008, 06:13 PM
newtojava7 newtojava7 is offline
Member
 
Join Date: Jan 2008
Posts: 16
newtojava7 is on a distinguished road
grabbing an item from an arraylist.
hello,

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.

thanks
Reply With Quote
Sponsored Links